zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit eeb6536c85c817bee2c137650ecfd941df20c38d (tree)
parent 8960e8090e2c5a5f491e09baf8df65f52d0daf77
Author: xackus <14938807+xackus@users.noreply.github.com>
Date:   Sun, 27 Oct 2019 21:41:52 +0100

better test name for empty string

Co-Authored-By: Andrew Kelley <andrew@ziglang.org>
Diffstat:
Mlib/std/json.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/json.zig b/lib/std/json.zig @@ -1453,7 +1453,7 @@ test "write json then parse it" { testing.expect(mem.eql(u8, tree.root.Object.get("str").?.value.String, "hello")); } -test "parsing empty string does not crash" { +test "parsing empty string gives appropriate error" { var p = Parser.init(debug.global_allocator, false); defer p.deinit(); testing.expectError(error.Incomplete, p.parse(""));