@@ -330,14 +330,17 @@ - (void)testQueriesCanUseInFilters {
330
330
@" c" : @{@" zip" : @98103 },
331
331
@" d" : @{@" zip" : @[ @98101 ]},
332
332
@" e" : @{@" zip" : @[ @" 98101" , @{@" zip" : @98101 } ]},
333
- @" f" : @{@" zip" : @{@" code" : @500 }}
333
+ @" f" : @{@" zip" : @{@" code" : @500 }},
334
+ @" g" : @{@" zip" : @[ @98101 , @98102 ]}
334
335
};
335
336
FIRCollectionReference *collection = [self collectionRefWithDocuments: testDocs];
336
337
337
- // Search for zips matching [98101, 98103].
338
- FIRQuerySnapshot *snapshot =
339
- [self readDocumentSetForRef: [collection queryWhereField: @" zip" in: @[ @98101 , @98103 ]]];
340
- XCTAssertEqualObjects (FIRQuerySnapshotGetData (snapshot), (@[ testDocs[@" a" ], testDocs[@" c" ] ]));
338
+ // Search for zips matching 98101, 98103, and [98101, 98102].
339
+ FIRQuerySnapshot *snapshot = [self
340
+ readDocumentSetForRef: [collection queryWhereField: @" zip"
341
+ in: @[ @98101 , @98103 , @[ @98101 , @98102 ] ]]];
342
+ XCTAssertEqualObjects (FIRQuerySnapshotGetData (snapshot),
343
+ (@[ testDocs[@" a" ], testDocs[@" c" ], testDocs[@" g" ] ]));
341
344
342
345
// With objects
343
346
snapshot = [self readDocumentSetForRef: [collection queryWhereField: @" zip"
0 commit comments