summaryrefslogtreecommitdiff
path: root/std/wasi/testdata/std_env_args.rs
blob: f07349c1ccb9d56173cb28bb74d1e6c4f2152963 (plain)
1
2
3
4
5
6
7
8
9
// { "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");
}