@@ -151,43 +151,11 @@ describe("Predicate filter", () => {
151151 expect ( match ( "numberProperty in (1234)" ) ) . toBeTruthy ( ) ;
152152 } ) ;
153153
154- test ( "in operator with and clause" , async ( ) => {
155- expect (
156- match ( "numberProperty in (1234) and stringProperty=:val" , {
157- val : "foobar" ,
158- } ) ,
159- ) . toBeTruthy ( ) ;
160- expect (
161- match ( "numberProperty in (1234) and stringProperty=:val" , {
162- val : "other" ,
163- } ) ,
164- ) . toBeFalsy ( ) ;
165- expect (
166- match ( "numberProperty in (1235) and stringProperty=:val" , {
167- val : "foobar" ,
168- } ) ,
169- ) . toBeFalsy ( ) ;
170- } ) ;
171-
172- test ( "within operator with and clause" , async ( ) => {
173- expect (
174- match (
175- "geoLocation within circle(5.121310867198959, 52.09068804569714, 2500) and stringProperty=:val" ,
176- { val : "foobar" } ,
177- ) ,
178- ) . toBeTruthy ( ) ;
179- expect (
180- match (
181- "geoLocation within circle(5.121310867198959, 52.09068804569714, 2500) and stringProperty=:val" ,
182- { val : "other" } ,
183- ) ,
184- ) . toBeFalsy ( ) ;
185- expect (
186- match (
187- "geoLocation within circle(5.121310867198959, 52.09068804569714, 1000) and stringProperty=:val" ,
188- { val : "foobar" } ,
189- ) ,
190- ) . toBeFalsy ( ) ;
154+ test ( "in operator works with with and without parentheses" , async ( ) => {
155+ expect ( match ( "numberProperty in :val" , { val : 1234 } ) ) . toBeTruthy ( ) ;
156+ expect ( match ( "numberProperty in :val" , { val : 1235 } ) ) . toBeFalsy ( ) ;
157+ expect ( match ( "numberProperty in :val" , { val : [ 1234 ] } ) ) . toBeTruthy ( ) ;
158+ expect ( match ( "numberProperty in :val" , { val : [ 1235 ] } ) ) . toBeFalsy ( ) ;
191159 } ) ;
192160
193161 test ( "arrayProperty contains all (...)" , async ( ) => {
0 commit comments