summaryrefslogtreecommitdiff
path: root/clap
diff options
context:
space:
mode:
authorGravatar Asherah Connor2020-08-28 17:26:01 +1000
committerGravatar Jimmi Holst Christensen2020-09-06 17:33:25 +0200
commit620b680c4d03cec7209d25e4019cf29a033dcb26 (patch)
tree93e8fc8ca9e87f0b29042c71b0bafa45f006fe31 /clap
parentreverse the order of these (diff)
downloadzig-clap-620b680c4d03cec7209d25e4019cf29a033dcb26.tar.gz
zig-clap-620b680c4d03cec7209d25e4019cf29a033dcb26.tar.xz
zig-clap-620b680c4d03cec7209d25e4019cf29a033dcb26.zip
adjust examples, README template
Diffstat (limited to 'clap')
-rw-r--r--clap/comptime.zig6
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}