Skip to content

Commit ef00ec2

Browse files
committed
fix test
1 parent dd879de commit ef00ec2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

firebase-firestore/src/androidTest/java/com/google/firebase/firestore/FirestoreTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,7 @@ public void snapshotListenerSortsUnicodeStringsAsServer() {
16961696
checkOnlineAndOfflineResultsMatch(orderedQuery, expectedDocIds.toArray(new String[0]));
16971697
}
16981698

1699+
@Test
16991700
public void snapshotListenerSortsUnicodeStringsInArrayFieldsAsServer() {
17001701
Map<String, Map<String, Object>> testDocs =
17011702
map(
@@ -1737,6 +1738,7 @@ public void snapshotListenerSortsUnicodeStringsInArrayFieldsAsServer() {
17371738
checkOnlineAndOfflineResultsMatch(orderedQuery, expectedDocIds.toArray(new String[0]));
17381739
}
17391740

1741+
@Test
17401742
public void snapshotListenerSortsUnicodeStringsInMapAsServer() {
17411743
Map<String, Map<String, Object>> testDocs =
17421744
map(
@@ -1778,6 +1780,7 @@ public void snapshotListenerSortsUnicodeStringsInMapAsServer() {
17781780
checkOnlineAndOfflineResultsMatch(orderedQuery, expectedDocIds.toArray(new String[0]));
17791781
}
17801782

1783+
@Test
17811784
public void snapshotListenerSortsUnicodeStringsInMapKeyAsServer() {
17821785
Map<String, Map<String, Object>> testDocs =
17831786
map(
@@ -1819,6 +1822,7 @@ public void snapshotListenerSortsUnicodeStringsInMapKeyAsServer() {
18191822
checkOnlineAndOfflineResultsMatch(orderedQuery, expectedDocIds.toArray(new String[0]));
18201823
}
18211824

1825+
@Test
18221826
public void snapshotListenerSortsUnicodeStringsInDocumentKeyAsServer() {
18231827
Map<String, Map<String, Object>> testDocs =
18241828
map(
@@ -1832,7 +1836,8 @@ public void snapshotListenerSortsUnicodeStringsInDocumentKeyAsServer() {
18321836

18331837
CollectionReference colRef = testCollectionWithDocs(testDocs);
18341838
Query orderedQuery = colRef.orderBy(FieldPath.documentId());
1835-
List<String> expectedDocIds = Arrays.asList("b", "a", "c", "f", "e", "d", "g");
1839+
List<String> expectedDocIds =
1840+
Arrays.asList("Sierpiński", "Łukasiewicz", "岩澤", "︒", "P", "🄟", "🐵");
18361841

18371842
QuerySnapshot getSnapshot = waitFor(orderedQuery.get());
18381843
List<String> getSnapshotDocIds =

0 commit comments

Comments
 (0)