Replace ArrayList<Any>() with stdlib_emptyListClass() and fix test. #KT-6013 Fixed
This commit is contained in:
@@ -197,7 +197,7 @@ public class StreamTest {
|
||||
|
||||
test fun flatMapOnEmpty() {
|
||||
val result = streamOf<Int>().flatMap { streamOf(0..it) }
|
||||
assertEquals(listOf<Int>(), result.toList())
|
||||
assertTrue(result.none())
|
||||
}
|
||||
|
||||
test fun flatMapWithEmptyItems() {
|
||||
|
||||
Reference in New Issue
Block a user