Skip to content

Commit a327f01

Browse files
bradynpoulsenqwwdfsad
authored andcommitted
Removed firstOrNull tests with nullable types
1 parent af3932a commit a327f01

File tree

1 file changed

+0
-8
lines changed
  • kotlinx-coroutines-core/common/test/flow/terminal

1 file changed

+0
-8
lines changed

kotlinx-coroutines-core/common/test/flow/terminal/FirstTest.kt

-8
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,6 @@ class FirstTest : TestBase() {
9090
assertEquals(1, flow.firstOrNull())
9191
}
9292

93-
@Test
94-
fun testFirstOrNullWithNulls() = runTest {
95-
val flow = flowOf(null, 1)
96-
assertNull(flow.firstOrNull())
97-
assertNull(flow.firstOrNull { it == null })
98-
assertEquals(1, flow.firstOrNull { it != null })
99-
}
100-
10193
@Test
10294
fun testFirstOrNullWithPredicate() = runTest {
10395
val flow = flowOf(1, 2, 3)

0 commit comments

Comments
 (0)