Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

Add none variation of std::env::args test. #27

Merged
merged 1 commit into from Jul 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/bin/std_env_args_none.rs
@@ -0,0 +1,10 @@
// {
// "args": [
// ]
// }

fn main() {
let mut args = std::env::args();
assert_eq!(args.len(), 1);
assert!(args.next().unwrap().contains("std_env_args_none.wasm"));
}
2 changes: 1 addition & 1 deletion src/bin/std_env_args.rs → src/bin/std_env_args_some.rs
Expand Up @@ -9,7 +9,7 @@
fn main() {
let mut args = std::env::args();
assert_eq!(args.len(), 4);
assert!(args.next().unwrap().contains("std_env_args.wasm"));
assert!(args.next().unwrap().contains("std_env_args_some.wasm"));
assert_eq!(args.next().unwrap(), "one");
assert_eq!(args.next().unwrap(), "two");
assert_eq!(args.next().unwrap(), "three");
Expand Down