@@ -4,12 +4,8 @@ import com.google.common.truth.Truth.assertThat
4
4
import com.google.firebase.firestore.RealtimePipelineSource
5
5
import com.google.firebase.firestore.TestUtil
6
6
import com.google.firebase.firestore.model.MutableDocument
7
- import com.google.firebase.firestore.model.Values
8
7
import com.google.firebase.firestore.pipeline.Expr.Companion.field
9
- import com.google.firebase.firestore.pipeline.minus
10
- import com.google.firebase.firestore.pipeline.plus
11
8
import com.google.firebase.firestore.testutil.TestUtilKtx.doc
12
- import com.google.protobuf.Timestamp
13
9
import kotlinx.coroutines.flow.flowOf
14
10
import kotlinx.coroutines.flow.toList
15
11
import kotlinx.coroutines.runBlocking
@@ -30,33 +26,4 @@ internal class PipelineTests {
30
26
31
27
assertThat(list).hasSize(1 )
32
28
}
33
-
34
- @Test
35
- fun xxx (): Unit = runBlocking {
36
- val zero: Timestamp = Values .timestamp(0 , 0 )
37
-
38
- assertThat(plus(zero, 0 , 0 ))
39
- .isEqualTo(zero)
40
-
41
- assertThat(plus(Values .timestamp(1 , 1 ), 1 , 1 ))
42
- .isEqualTo(Values .timestamp(2 , 2 ))
43
-
44
- assertThat(plus(Values .timestamp(1 , 1 ), 0 , 1 ))
45
- .isEqualTo(Values .timestamp(1 , 2 ))
46
-
47
- assertThat(plus(Values .timestamp(1 , 1 ), 1 , 0 ))
48
- .isEqualTo(Values .timestamp(2 , 1 ))
49
-
50
- assertThat(minus(zero, 0 , 0 ))
51
- .isEqualTo(zero)
52
-
53
- assertThat(minus(Values .timestamp(1 , 1 ), 1 , 1 ))
54
- .isEqualTo(zero)
55
-
56
- assertThat(minus(Values .timestamp(1 , 1 ), 0 , 1 ))
57
- .isEqualTo(Values .timestamp(1 , 0 ))
58
-
59
- assertThat(minus(Values .timestamp(1 , 1 ), 1 , 0 ))
60
- .isEqualTo(Values .timestamp(0 , 1 ))
61
- }
62
29
}
0 commit comments