mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
fix tests
This commit is contained in:
parent
bc05dc4c7d
commit
5278e4dcb8
@ -1263,10 +1263,9 @@ test "help" {
|
|||||||
// Only verify that we see the important stuff that should definitely be there somewhere,
|
// Only verify that we see the important stuff that should definitely be there somewhere,
|
||||||
// but otherwise allow maintainers to adjust the layout, formatting, notation, etc. without causing friction here.
|
// but otherwise allow maintainers to adjust the layout, formatting, notation, etc. without causing friction here.
|
||||||
try testing.expect(mem.indexOf(u8, aw.written(), "test-prog") != null);
|
try testing.expect(mem.indexOf(u8, aw.written(), "test-prog") != null);
|
||||||
try testing.expect(mem.indexOf(u8, aw.written(), "--str string") != null);
|
try testing.expect(mem.indexOf(u8, aw.written(), "--str=string") != null);
|
||||||
try testing.expect(mem.indexOf(u8, aw.written(), "--int") != null);
|
try testing.expect(mem.indexOf(u8, aw.written(), "--int") != null);
|
||||||
try testing.expect(mem.indexOf(u8, aw.written(), "--flag") != null);
|
try testing.expect(mem.indexOf(u8, aw.written(), "--[no-]flag") != null);
|
||||||
try testing.expect(mem.indexOf(u8, aw.written(), "--no-flag") != null);
|
|
||||||
try testing.expect(mem.indexOf(u8, aw.written(), "--help") != null);
|
try testing.expect(mem.indexOf(u8, aw.written(), "--help") != null);
|
||||||
|
|
||||||
aw.clearRetainingCapacity();
|
aw.clearRetainingCapacity();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user