diff options
| author | 2018-06-01 08:37:50 +0200 | |
|---|---|---|
| committer | 2018-06-01 08:37:50 +0200 | |
| commit | 8ff2b3ff8313b260b07115b8a773e40b5c0194c6 (patch) | |
| tree | 97dc5b5b95f7a5ad8a72b8989b5cee49fffb8992 /tests | |
| parent | Core args now have a pointer to the param that the arg belongs to (diff) | |
| download | zig-clap-8ff2b3ff8313b260b07115b8a773e40b5c0194c6.tar.gz zig-clap-8ff2b3ff8313b260b07115b8a773e40b5c0194c6.tar.xz zig-clap-8ff2b3ff8313b260b07115b8a773e40b5c0194c6.zip | |
Id is now gotten through param of arg
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core.zig b/tests/core.zig index a6a705e..d4304a1 100644 --- a/tests/core.zig +++ b/tests/core.zig | |||
| @@ -18,7 +18,7 @@ fn testNoErr(params: []const Param(u8), args: []const []const u8, ids: []const u | |||
| 18 | 18 | ||
| 19 | var i: usize = 0; | 19 | var i: usize = 0; |
| 20 | while (iter.next() catch unreachable) |arg| : (i += 1) { | 20 | while (iter.next() catch unreachable) |arg| : (i += 1) { |
| 21 | debug.assert(ids[i] == arg.id); | 21 | debug.assert(ids[i] == arg.param.id); |
| 22 | const expected_value = values[i] ?? { | 22 | const expected_value = values[i] ?? { |
| 23 | debug.assert(arg.value == null); | 23 | debug.assert(arg.value == null); |
| 24 | continue; | 24 | continue; |