Skip to content

Commit 0c5a93d

Browse files
committed
format
1 parent e8e7df5 commit 0c5a93d

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

Firestore/Example/Tests/Integration/API/FIRQueryTests.mm

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -898,19 +898,18 @@ - (void)testSdkOrdersQueryByDocumentIdTheSameWayOnlineAndOffline {
898898

899899
- (void)testSnapshotListenerSortsUnicodeStringsInTheSameOrderAsServer {
900900
FIRCollectionReference *collRef = [self collectionRefWithDocuments:@{
901-
@"a": @{@"value": @ "Łukasiewicz"},
902-
@"b": @{@"value": @"Sierpiński"},
903-
@"c": @{@"value": @"岩澤"},
904-
@"d": @{@"value": @"🄟"},
905-
@"e": @{@"value": @""},
906-
@"f": @{@"value": @""},
907-
@"g": @{@"value": @"🐵"}
901+
@"a" : @{@"value" : @ "Łukasiewicz"},
902+
@"b" : @{@"value" : @"Sierpiński"},
903+
@"c" : @{@"value" : @"岩澤"},
904+
@"d" : @{@"value" : @"🄟"},
905+
@"e" : @{@"value" : @""},
906+
@"f" : @{@"value" : @""},
907+
@"g" : @{@"value" : @"🐵"}
908908

909909
}];
910910

911911
FIRQuery *query = [collRef queryOrderedByField:@"value"];
912-
NSArray<NSString *> *expectedDocs =
913-
@[ @"b", @"a", @"c", @"f", @"e", @"d", @"g"];
912+
NSArray<NSString *> *expectedDocs = @[ @"b", @"a", @"c", @"f", @"e", @"d", @"g" ];
914913
FIRQuerySnapshot *getSnapshot = [self readDocumentSetForRef:query];
915914
XCTAssertEqualObjects(FIRQuerySnapshotGetIDs(getSnapshot), expectedDocs);
916915

@@ -924,18 +923,18 @@ - (void)testSnapshotListenerSortsUnicodeStringsInTheSameOrderAsServer {
924923

925924
- (void)testSnapshotListenerSortsUnicodeStringsTheSameWayOnlineAndOffline {
926925
FIRCollectionReference *collRef = [self collectionRefWithDocuments:@{
927-
@"a": @{@"value": @ "Łukasiewicz"},
928-
@"b": @{@"value": @"Sierpiński"},
929-
@"c": @{@"value": @"岩澤"},
930-
@"d": @{@"value": @"🄟"},
931-
@"e": @{@"value": @""},
932-
@"f": @{@"value": @""},
933-
@"g": @{@"value": @"🐵"}
926+
@"a" : @{@"value" : @ "Łukasiewicz"},
927+
@"b" : @{@"value" : @"Sierpiński"},
928+
@"c" : @{@"value" : @"岩澤"},
929+
@"d" : @{@"value" : @"🄟"},
930+
@"e" : @{@"value" : @""},
931+
@"f" : @{@"value" : @""},
932+
@"g" : @{@"value" : @"🐵"}
934933

935934
}];
936-
935+
937936
[self checkOnlineAndOfflineQuery:[collRef queryOrderedByField:@"value"]
938-
matchesResult:@[@"b", @"a", @"c", @"f", @"e", @"d", @"g"]];
937+
matchesResult:@[ @"b", @"a", @"c", @"f", @"e", @"d", @"g" ]];
939938
}
940939

941940
- (void)testCollectionGroupQueriesWithWhereFiltersOnArbitraryDocumentIDs {

0 commit comments

Comments
 (0)