Commit 3027225c96217f7bb6556aed2dbbd4c36f729ae6

Thomas de Grivel 2024-08-14T15:34:14

more tests for json

diff --git a/test/json/basics.kc3 b/test/json/basics.kc3
index 3dcceb7..b51c168 100644
--- a/test/json/basics.kc3
+++ b/test/json/basics.kc3
@@ -1,2 +1,6 @@
+quote JSON.from_str("{}")
 JSON.from_str("{}")
+quote JSON.from_str("""{"a": "b"}""")
+JSON.from_str("""{"a": "b"}""")
+quote JSON.from_str("""{"a": 1}""")
 JSON.from_str("""{"a": 1}""")
diff --git a/test/json/basics.out.expected b/test/json/basics.out.expected
index e69de29..4135c76 100644
--- a/test/json/basics.out.expected
+++ b/test/json/basics.out.expected
@@ -0,0 +1,6 @@
+JSON.from_str("{}")
+%{}
+JSON.from_str("{\"a\": \"b\"}")
+%{"a" => "b"}
+JSON.from_str("{\"a\": 1}")
+%{"a" => 1}