diff options
Diffstat (limited to 'src/root.zig')
| -rw-r--r-- | src/root.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig index 650acdf..f2cc29a 100644 --- a/src/root.zig +++ b/src/root.zig @@ -47,6 +47,10 @@ test "literals" { try testRun("\"\"", "null", "\"\""); try testRun("\"hello\\nworld\"", "null", "\"hello\\nworld\""); try testRun("\"hello\"", "{\"a\":1}", "\"hello\""); + try testRun("[]", "null", "[]"); + try testRun("{}", "null", "{}"); + try testRun("[]", "{\"a\":1}", "[]"); + try testRun("{}", "[1,2,3]", "{}"); } test "identity filter" { |
