1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 17:19:06 -05:00
denoland-deno/std/wasi/testdata/std_env_args.rs

10 lines
249 B
Rust
Raw Normal View History

// { "args": ["one", "two", "three" ]}
fn main() {
let mut args = std::env::args();
assert_eq!(args.len(), 3);
assert_eq!(args.next().unwrap(), "one");
assert_eq!(args.next().unwrap(), "two");
assert_eq!(args.next().unwrap(), "three");
}