-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce NOT logical operator and add tests (#192)
- Loading branch information
1 parent
1078778
commit d4e5bff
Showing
9 changed files
with
221 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...grationTest/resources/query/array_operators/all_planets_having_both_oxygen_and_water.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[ | ||
{ | ||
"name": "Solar System 1", | ||
"additional_info": { | ||
"planets": [ | ||
{ | ||
"name": "Planet 1", | ||
"elements": [ | ||
"Oxygen", | ||
"Water", | ||
"Nitrogen" | ||
], | ||
"meta": { | ||
"num_moons": 7 | ||
} | ||
}, | ||
{ | ||
"name": "Planet 2", | ||
"elements": [ | ||
"Oxygen", | ||
"Helium", | ||
"Water" | ||
], | ||
"meta": { | ||
"num_moons": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] |
56 changes: 56 additions & 0 deletions
56
...Test/resources/query/array_operators/no_planet_having_both_oxygen_and_water_together.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[ | ||
{ | ||
"name": "Solar System 2", | ||
"additional_info": { | ||
"planets": [ | ||
{ | ||
"name": "Planet 1" | ||
}, | ||
{ | ||
"name": "Planet 2" | ||
}, | ||
{ | ||
"name": "Planet 3", | ||
"elements": [ | ||
"Oxygen", | ||
"Nitrogen" | ||
] | ||
}, | ||
{ | ||
"name": "Planet 4", | ||
"elements": [ | ||
"Iron" | ||
] | ||
}, | ||
{ | ||
"name": "Planet 5", | ||
"elements": [] | ||
}, | ||
{ | ||
"name": "Planet 6", | ||
"elements": [] | ||
}, | ||
{ | ||
"name": "Planet 7", | ||
"elements": [ | ||
"Hydrogen", | ||
"Helium", | ||
"Methane" | ||
], | ||
"meta": { | ||
"num_moons": 10 | ||
} | ||
}, | ||
{ | ||
"name": "Planet 8", | ||
"elements": [ | ||
"Hydrogen", | ||
"Helium", | ||
"Methane", | ||
"Ammonia" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
public enum LogicalOperator { | ||
AND, | ||
OR, | ||
NOT, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters