authorgravatar for 14938807+xackus@users.noreply.github.comxackus <14938807+xackus@users.noreply.github.com> 2019-10-27 21:41:52+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2019-10-27 21:41:52+01:00
logeeb6536c85c817bee2c137650ecfd941df20c38d
tree29d18cfd8e0f74df958c9b772f86dbe666c077f8
parent8960e8090e2c5a5f491e09baf8df65f52d0daf77
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

better test name for empty string

Co-Authored-By: Andrew Kelley <andrew@ziglang.org>

1 files changed, 1 insertions(+), 1 deletions(-)

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