fix tests

This commit is contained in:
Josh Wolfe 2025-08-29 20:38:16 -04:00
parent bc05dc4c7d
commit 5278e4dcb8

View file

@ -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();