diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-06 18:53:17 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-06 18:53:17 -0500 |
| commit | 633b6bf92055a62f8a18dbfdb1ddc4f7330bf4ec (patch) | |
| tree | 3be9c09b1e6c0c3aff43fdc3d6d98948756de023 /lib/std/json | |
| parent | 4e6ad8efd9fcefb820acf4a03fc4ab9157f85c1b (diff) | |
| parent | c0e8837ce9168088e89bfeef9516d7318cd5f97d (diff) | |
| download | zig-633b6bf92055a62f8a18dbfdb1ddc4f7330bf4ec.tar.gz zig-633b6bf92055a62f8a18dbfdb1ddc4f7330bf4ec.zip | |
Merge branch 'LemonBoy-cc-work'
Diffstat (limited to 'lib/std/json')
| -rw-r--r-- | lib/std/json/test.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/std/json/test.zig b/lib/std/json/test.zig index 2dc5b860ed..5cc069bda3 100644 --- a/lib/std/json/test.zig +++ b/lib/std/json/test.zig @@ -22,7 +22,7 @@ fn err(comptime s: []const u8) void { const allocator = &std.heap.FixedBufferAllocator.init(&mem_buffer).allocator; var p = std.json.Parser.init(allocator, false); - if(p.parse(s)) |_| { + if (p.parse(s)) |_| { unreachable; } else |_| {} } @@ -33,7 +33,7 @@ fn any(comptime s: []const u8) void { var mem_buffer: [1024 * 20]u8 = undefined; const allocator = &std.heap.FixedBufferAllocator.init(&mem_buffer).allocator; var p = std.json.Parser.init(allocator, false); - + _ = p.parse(s) catch {}; } @@ -44,7 +44,7 @@ fn anyStreamingErrNonStreaming(comptime s: []const u8) void { const allocator = &std.heap.FixedBufferAllocator.init(&mem_buffer).allocator; var p = std.json.Parser.init(allocator, false); - if(p.parse(s)) |_| { + if (p.parse(s)) |_| { unreachable; } else |_| {} } @@ -1742,9 +1742,9 @@ test "i_number_double_huge_neg_exp" { test "i_number_huge_exp" { return error.SkipZigTest; // FIXME Integer overflow in parseFloat -// any( -// \\[0.4e00669999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999969999999006] -// ); + // any( + // \\[0.4e00669999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999969999999006] + // ); } test "i_number_neg_int_huge_exp" { |
