Skip to content

Commit adbac78

Browse files
Fix bounds tests
1 parent 9f7044d commit adbac78

File tree

1 file changed

+6
-6
lines changed
  • firebase-firestore/src/test/java/com/google/firebase/firestore/core

1 file changed

+6
-6
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/core/TargetTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void equalsQueryBound() {
5959
verifyBound(lowerBound, true, "bar");
6060

6161
Bound upperBound = target.getUpperBound(index);
62-
verifyBound(upperBound, true, "bar");
62+
verifyBound(upperBound, false, "bar");
6363
}
6464

6565
@Test
@@ -72,7 +72,7 @@ public void lowerThanQueryBound() {
7272
verifyBound(lowerBound, true, new Object[] {null});
7373

7474
Bound upperBound = target.getUpperBound(index);
75-
verifyBound(upperBound, false, "bar");
75+
verifyBound(upperBound, true, "bar");
7676
}
7777

7878
@Test
@@ -85,7 +85,7 @@ public void lowerThanOrEqualsQueryBound() {
8585
verifyBound(lowerBound, true, new Object[] {null});
8686

8787
Bound upperBound = target.getUpperBound(index);
88-
verifyBound(upperBound, true, "bar");
88+
verifyBound(upperBound, false, "bar");
8989
}
9090

9191
@Test
@@ -124,7 +124,7 @@ public void containsQueryBound() {
124124
verifyBound(lowerBound, true, "bar");
125125

126126
Bound upperBound = target.getUpperBound(index);
127-
verifyBound(upperBound, true, "bar");
127+
verifyBound(upperBound, false, "bar");
128128
}
129129

130130
@Test
@@ -310,7 +310,7 @@ public void endBeforeDoesNotChangeBoundIfNotApplicable() {
310310
verifyBound(lowerBound, true, null, "b1");
311311

312312
Bound upperBound = target.getUpperBound(index);
313-
verifyBound(upperBound, true, "a1", "b1");
313+
verifyBound(upperBound, false, "a1", "b1");
314314
}
315315

316316
@Test
@@ -324,7 +324,7 @@ public void partialIndexMatchQueryBound() {
324324
verifyBound(lowerBound, true, "a");
325325

326326
Bound upperBound = target.getUpperBound(index);
327-
verifyBound(upperBound, true, "a");
327+
verifyBound(upperBound, false, "a");
328328
}
329329

330330
private void verifyBound(Bound bound, boolean before, Object... values) {

0 commit comments

Comments
 (0)