Skip to content

Commit 9055364

Browse files
committed
Commit this guy
1 parent 4ec11ff commit 9055364

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

suites/val.json

+12
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,17 @@
3535
"rule": { "val": "" },
3636
"data": { "": { "": 22 } },
3737
"result": { "": 22 }
38+
},
39+
{
40+
"description": "Using val in a map (remember that null gets the current context, not empty string)",
41+
"rule": { "map": [[1,2,3], { "+": [{ "val": null }, 1] }] },
42+
"data": null,
43+
"result": [2,3,4]
44+
},
45+
{
46+
"description": "Using val in a map (and remember [null] and null are the same)",
47+
"rule": { "map": [[1,2,3], { "+": [{ "val": [null] }, 1] }] },
48+
"data": null,
49+
"result": [2,3,4]
3850
}
3951
]

0 commit comments

Comments
 (0)