We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d860b2 commit 06e2a41Copy full SHA for 06e2a41
kotlinx-coroutines-core/common/test/flow/terminal/FirstTest.kt
@@ -90,14 +90,6 @@ class FirstTest : TestBase() {
90
assertEquals(1, flow.firstOrNull())
91
}
92
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
-
101
@Test
102
fun testFirstOrNullWithPredicate() = runTest {
103
val flow = flowOf(1, 2, 3)
0 commit comments