better test name for empty string
Co-Authored-By: Andrew Kelley <andrew@ziglang.org>master
parent
8960e8090e
commit
eeb6536c85
|
@ -1453,7 +1453,7 @@ test "write json then parse it" {
|
||||||
testing.expect(mem.eql(u8, tree.root.Object.get("str").?.value.String, "hello"));
|
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);
|
var p = Parser.init(debug.global_allocator, false);
|
||||||
defer p.deinit();
|
defer p.deinit();
|
||||||
testing.expectError(error.Incomplete, p.parse(""));
|
testing.expectError(error.Incomplete, p.parse(""));
|
||||||
|
|
Loading…
Reference in New Issue