better test name for empty string

Co-Authored-By: Andrew Kelley <andrew@ziglang.org>
master
xackus 2019-10-27 21:41:52 +01:00 committed by GitHub
parent 8960e8090e
commit eeb6536c85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(""));