Clean TODOs, add custom Iterable implementation test.
This commit is contained in:
committed by
Andrey Breslav
parent
ceb2aa57f9
commit
266f6ad81a
@@ -48,8 +48,7 @@ class CollectionJVMTest {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO would be nice to avoid the <String>
|
||||
test fun filterNotNullIntolinkedListOf() {
|
||||
test fun filterNotNullIntoLinkedListOf() {
|
||||
val data = arrayListOf(null, "foo", null, "bar")
|
||||
val foo = data.filterNotNullTo(linkedListOf<String>())
|
||||
|
||||
@@ -61,8 +60,6 @@ class CollectionJVMTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// TODO would be nice to avoid the <String>
|
||||
test fun filterIntoSortedSet() {
|
||||
val data = arrayListOf("foo", "bar")
|
||||
val sorted = data.filterTo(sortedSetOf<String>()) { it.length == 3 }
|
||||
|
||||
Reference in New Issue
Block a user