From afb238972816b560b082229ac20cdab64bca8aca Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 25 Jan 2026 18:42:24 +0900 Subject: implement empty array/object literals --- src/root.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/root.zig') 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" { -- cgit v1.3-1-g0d28