diff options
| author | 2020-11-10 18:31:35 +0100 | |
|---|---|---|
| committer | 2020-11-10 18:31:35 +0100 | |
| commit | cc0885a2fd8c4bbfbf8ffbe6e31a8d0540fec495 (patch) | |
| tree | d025ff320915d560a720716a77a652ff63026ff4 /clap/streaming.zig | |
| parent | Improve Diagnostic error message reporting (diff) | |
| download | zig-clap-cc0885a2fd8c4bbfbf8ffbe6e31a8d0540fec495.tar.gz zig-clap-cc0885a2fd8c4bbfbf8ffbe6e31a8d0540fec495.tar.xz zig-clap-cc0885a2fd8c4bbfbf8ffbe6e31a8d0540fec495.zip | |
Better parseParam
Diffstat (limited to 'clap/streaming.zig')
| -rw-r--r-- | clap/streaming.zig | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/clap/streaming.zig b/clap/streaming.zig index 602d94a..844cbf7 100644 --- a/clap/streaming.zig +++ b/clap/streaming.zig | |||
| @@ -208,15 +208,7 @@ fn testErr(params: []const clap.Param(u8), args_strings: []const []const u8, exp | |||
| 208 | var buf: [1024]u8 = undefined; | 208 | var buf: [1024]u8 = undefined; |
| 209 | var slice_stream = io.fixedBufferStream(&buf); | 209 | var slice_stream = io.fixedBufferStream(&buf); |
| 210 | diag.report(slice_stream.outStream(), err) catch unreachable; | 210 | diag.report(slice_stream.outStream(), err) catch unreachable; |
| 211 | 211 | testing.expectEqualStrings(expected, slice_stream.getWritten()); | |
| 212 | const actual = slice_stream.getWritten(); | ||
| 213 | if (!mem.eql(u8, actual, expected)) { | ||
| 214 | debug.warn("\n============ Expected ============\n", .{}); | ||
| 215 | debug.warn("{}", .{expected}); | ||
| 216 | debug.warn("============= Actual =============\n", .{}); | ||
| 217 | debug.warn("{}", .{actual}); | ||
| 218 | testing.expect(false); | ||
| 219 | } | ||
| 220 | return; | 212 | return; |
| 221 | }) |_| {} | 213 | }) |_| {} |
| 222 | 214 | ||