mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
better test name for empty string
Co-Authored-By: Andrew Kelley <andrew@ziglang.org>
This commit is contained in:
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"));
|
||||
}
|
||||
|
||||
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(""));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user