diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2019-10-27 21:41:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-27 21:41:52 +0100 |
| commit | eeb6536c85c817bee2c137650ecfd941df20c38d (patch) | |
| tree | 29d18cfd8e0f74df958c9b772f86dbe666c077f8 /lib/std | |
| parent | 8960e8090e2c5a5f491e09baf8df65f52d0daf77 (diff) | |
| download | zig-eeb6536c85c817bee2c137650ecfd941df20c38d.tar.gz zig-eeb6536c85c817bee2c137650ecfd941df20c38d.zip | |
better test name for empty string
Co-Authored-By: Andrew Kelley <andrew@ziglang.org>
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/json.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/json.zig b/lib/std/json.zig index 876fae955e..b7f4c03168 100644 --- a/lib/std/json.zig +++ b/lib/std/json.zig @@ -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("")); |
