compount parser tests
This commit is contained in:
parent
fa0ba53579
commit
054f185c1b
|
@ -245,6 +245,30 @@
|
|||
["QueryThrows", "LinkObject", "linkCol > $0", [0, "linkCol"]],
|
||||
["QueryThrows", "LinkObject", "intCol = $0", [0, "linkCol"]]
|
||||
]
|
||||
},
|
||||
|
||||
"compoundTests" : {
|
||||
"schema" : [
|
||||
{ "name": "IntObject",
|
||||
"properties": [{ "name": "intCol", "type": "int" }],
|
||||
"primaryKey" : "intCol" }
|
||||
],
|
||||
"objects": [
|
||||
{ "type": "IntObject", "value": [0] },
|
||||
{ "type": "IntObject", "value": [1] },
|
||||
{ "type": "IntObject", "value": [2] },
|
||||
{ "type": "IntObject", "value": [3] }
|
||||
],
|
||||
"tests": [
|
||||
["ObjectSet", [], "IntObject", "intCol == 0 && intCol == 1"],
|
||||
["ObjectSet", [0, 1], "IntObject", "intCol == 0 || intCol == 1"],
|
||||
["ObjectSet", [0], "IntObject", "intCol == 0 && intCol != 1"],
|
||||
["ObjectSet", [2, 3], "IntObject", "intCol >= 2 && intCol < 4"],
|
||||
["ObjectSet", [0], "IntObject", "intCol == 0 && NOT intCol != 0"],
|
||||
["ObjectSet", [1], "IntObject", "(intCol == 0 || intCol == 1) && intCol >= 1"],
|
||||
["ObjectSet", [0, 1], "IntObject", "intCol == 0 || (intCol == 1 && intCol >= 1)"],
|
||||
["ObjectSet", [0, 1], "IntObject", "intCol == 0 || intCol == 1 && intCol >= 1"]
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue