Skip to content

Commit a28316d

Browse files
committed
Add array thing
1 parent 2844d1f commit a28316d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

suites/val.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
"data": { "": 21 },
3131
"result": { "": 21 }
3232
},
33+
{
34+
"description": "Fetches the entire context (array)",
35+
"rule": { "val": [] },
36+
"data": { "": 21 },
37+
"result": { "": 21 }
38+
},
3339
{
3440
"description": "Fetches the entire context for a nested key",
3541
"rule": { "val": "" },
@@ -48,6 +54,12 @@
4854
"data": null,
4955
"result": [2,3,4]
5056
},
57+
{
58+
"description": "Using val in a map (using empty list)",
59+
"rule": { "map": [[1,2,3], { "+": [{ "val": [] }, 1] }] },
60+
"data": null,
61+
"result": [2,3,4]
62+
},
5163
"Testing out scopes",
5264
{
5365
"description": "Climb up to get adder",

0 commit comments

Comments
 (0)