@@ -4,12 +4,8 @@ import com.google.common.truth.Truth.assertThat
44import com.google.firebase.firestore.RealtimePipelineSource
55import com.google.firebase.firestore.TestUtil
66import com.google.firebase.firestore.model.MutableDocument
7- import com.google.firebase.firestore.model.Values
87import com.google.firebase.firestore.pipeline.Expr.Companion.field
9- import com.google.firebase.firestore.pipeline.minus
10- import com.google.firebase.firestore.pipeline.plus
118import com.google.firebase.firestore.testutil.TestUtilKtx.doc
12- import com.google.protobuf.Timestamp
139import kotlinx.coroutines.flow.flowOf
1410import kotlinx.coroutines.flow.toList
1511import kotlinx.coroutines.runBlocking
@@ -30,33 +26,4 @@ internal class PipelineTests {
3026
3127 assertThat(list).hasSize(1 )
3228 }
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- }
6229}
0 commit comments