This repository has been archived by the owner on Jun 27, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add none variation of std::env::args test.
This adds a variation of the std::env::args test where no arguments are provided.
- Loading branch information
1 parent
5ace7a4
commit 86a8c79
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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")); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters