better test name for empty string
Co-Authored-By: Andrew Kelley <andrew@ziglang.org>
This commit is contained in:
@@ -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(""));
|
||||
|
||||
Reference in New Issue
Block a user