From 5278e4dcb8dd251142a3a0443b0391697ffc22b6 Mon Sep 17 00:00:00 2001 From: Josh Wolfe Date: Fri, 29 Aug 2025 20:38:16 -0400 Subject: [PATCH] fix tests --- lib/std/cli.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/std/cli.zig b/lib/std/cli.zig index 12bfe1200f..f8109f6b5d 100644 --- a/lib/std/cli.zig +++ b/lib/std/cli.zig @@ -1263,10 +1263,9 @@ test "help" { // 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. 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(), "--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); aw.clearRetainingCapacity();