Skip to content

Commit

Permalink
Add a test for primitive values and OR expressions
Browse files Browse the repository at this point in the history
`true || …` fails
  • Loading branch information
iconara committed Jan 11, 2016
1 parent 92cc0ab commit 3ff239a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion spec/compliance/ormatch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[{
"given":
{"outer": {"foo": "foo", "bar": "bar", "baz": "baz"}},
{"outer": {"foo": "foo", "bar": "bar", "baz": "baz"}, "primitives": {"t": true, "f": false, "n": null}},
"cases": [
{
"expression": "outer.foo || outer.bar",
Expand Down Expand Up @@ -41,6 +41,18 @@
{
"expression": "outer.bad||outer.alsobad",
"result": null
},
{
"expression": "primitives.t || outer.foo",
"result": true
},
{
"expression": "primitives.f || outer.foo",
"result": "foo"
},
{
"expression": "primitives.n || outer.foo",
"result": "foo"
}
]
}, {
Expand Down

0 comments on commit 3ff239a

Please sign in to comment.