mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
fix tests
This commit is contained in:
parent
bc05dc4c7d
commit
5278e4dcb8
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue