From 960800888a24938d006dd5a218ae482c2e9cb1d0 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Mon, 6 Jul 2020 06:03:34 +0800 Subject: [PATCH] test(std/wasi): explicitly assert each expected arg (#6633) --- std/wasi/testdata/std_env_args.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/std/wasi/testdata/std_env_args.rs b/std/wasi/testdata/std_env_args.rs index 09151e5492..f07349c1cc 100644 --- a/std/wasi/testdata/std_env_args.rs +++ b/std/wasi/testdata/std_env_args.rs @@ -1,6 +1,9 @@ // { "args": ["one", "two", "three" ]} fn main() { - let args = std::env::args(); + 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"); }