mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
std.process: update arg iterator tests
These tests asserted there were no args passed to the test binary, but now there is an arg intentionally passed to the test binary, so the test case needed to be updated.
This commit is contained in:
parent
3b5dd48f99
commit
78dcd1b23e
@ -517,7 +517,8 @@ test "args iterator" {
|
||||
const given_suffix = std.fs.path.basename(prog_name);
|
||||
|
||||
testing.expect(mem.eql(u8, expected_suffix, given_suffix));
|
||||
testing.expectEqual(it.next(ga), null);
|
||||
testing.expect(it.skip()); // Skip over zig_exe_path, passed to the test runner
|
||||
testing.expect(it.next(ga) == null);
|
||||
testing.expect(!it.skip());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user