Skip to content

Commit

Permalink
Add test for operator precedence issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand Thakker committed Jun 20, 2017
1 parent 85966e1 commit 013a59e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions test/integration/expression-tests/case/precedence/test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"metadata": {
"test": {
"description": "Regression test for operator precedence: false && (true ? true : true) !== (false && true) ? true: true"
}
},
"expression": [
"boolean",
[
"&&",
false,
[
"case",
true,
true,
true
]
]
],
"evaluate": [
[
{},
{}
]
],
"expected": {
"compileResult": {
"result": "success",
"isFeatureConstant": true,
"isZoomConstant": true,
"type": "boolean"
},
"evaluateResults": [
false
]
}
}

0 comments on commit 013a59e

Please sign in to comment.