We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af3932a commit a327f01Copy full SHA for a327f01
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