authorgravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2025-08-29 20:38:16-04:00
committergravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2025-08-30 22:36:30-04:00
log5278e4dcb8dd251142a3a0443b0391697ffc22b6
treec3abf8fced5078ac90d1d34cc4ad0dcb85f77cd1
parentbc05dc4c7db6e32131af7127d49b10486805ad93

fix tests


1 files changed, 2 insertions(+), 3 deletions(-)

lib/std/cli.zig+2-3
......@@ -1263,10 +1263,9 @@ test "help" {
12631263 // Only verify that we see the important stuff that should definitely be there somewhere,
12641264 // but otherwise allow maintainers to adjust the layout, formatting, notation, etc. without causing friction here.
12651265 try testing.expect(mem.indexOf(u8, aw.written(), "test-prog") != null);
1266 try testing.expect(mem.indexOf(u8, aw.written(), "--str string") != null);
1266 try testing.expect(mem.indexOf(u8, aw.written(), "--str=string") != null);
12671267 try testing.expect(mem.indexOf(u8, aw.written(), "--int") != null);
1268 try testing.expect(mem.indexOf(u8, aw.written(), "--flag") != null);
1269 try testing.expect(mem.indexOf(u8, aw.written(), "--no-flag") != null);
1268 try testing.expect(mem.indexOf(u8, aw.written(), "--[no-]flag") != null);
12701269 try testing.expect(mem.indexOf(u8, aw.written(), "--help") != null);
12711270
12721271 aw.clearRetainingCapacity();