diff options
Diffstat (limited to 'clap/comptime.zig')
| -rw-r--r-- | clap/comptime.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clap/comptime.zig b/clap/comptime.zig index b0edb2a..28ec42b 100644 --- a/clap/comptime.zig +++ b/clap/comptime.zig | |||
| @@ -167,10 +167,10 @@ test "clap.comptime.ComptimeClap" { | |||
| 167 | testing.expect(args.flag("--aa")); | 167 | testing.expect(args.flag("--aa")); |
| 168 | testing.expect(!args.flag("-b")); | 168 | testing.expect(!args.flag("-b")); |
| 169 | testing.expect(!args.flag("--bb")); | 169 | testing.expect(!args.flag("--bb")); |
| 170 | testing.expectEqualStrings("0", args.option("-c").?); | 170 | testing.expectEqualSlices(u8, "0", args.option("-c").?); |
| 171 | testing.expectEqualStrings("0", args.option("--cc").?); | 171 | testing.expectEqualSlices(u8, "0", args.option("--cc").?); |
| 172 | testing.expectEqual(@as(usize, 1), args.positionals().len); | 172 | testing.expectEqual(@as(usize, 1), args.positionals().len); |
| 173 | testing.expectEqualStrings("something", args.positionals()[0]); | 173 | testing.expectEqualSlices(u8, "something", args.positionals()[0]); |
| 174 | testing.expectEqualSlices([]const u8, &[_][]const u8{ "a", "b" }, args.options("-d")); | 174 | testing.expectEqualSlices([]const u8, &[_][]const u8{ "a", "b" }, args.options("-d")); |
| 175 | testing.expectEqualSlices([]const u8, &[_][]const u8{ "a", "b" }, args.options("--dd")); | 175 | testing.expectEqualSlices([]const u8, &[_][]const u8{ "a", "b" }, args.options("--dd")); |
| 176 | } | 176 | } |