Commit ecc126c43643515a693fbadebc55118953d298e0

Thomas de Grivel 2024-08-14T16:06:06

make test_json: recursive.kc3

diff --git a/test/json/recursive.kc3 b/test/json/recursive.kc3
new file mode 100644
index 0000000..1d62d4c
--- /dev/null
+++ b/test/json/recursive.kc3
@@ -0,0 +1,4 @@
+quote map = JSON.from_str("""{"a": {"b": {"c": 1}}}""")
+map = JSON.from_str("""{"a": {"b": {"c": 1}}}""")
+quote map["a"]["b"]["c"]
+map["a"]["b"]["c"]
diff --git a/test/json/recursive.out.expected b/test/json/recursive.out.expected
new file mode 100644
index 0000000..c61ba27
--- /dev/null
+++ b/test/json/recursive.out.expected
@@ -0,0 +1,4 @@
+map = JSON.from_str("{\"a\": {\"b\": {\"c\": 1}}}")
+%{"a" => %{"b" => %{"c" => 1}}}
+map["a"]["b"]["c"]
+1
diff --git a/test/json/recursive.ret.expected b/test/json/recursive.ret.expected
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/json/recursive.ret.expected
@@ -0,0 +1 @@
+0