diff --git a/testlib/test/CollectionTest.kt b/testlib/test/CollectionTest.kt index c3867ae94a1..d6427678b56 100644 --- a/testlib/test/CollectionTest.kt +++ b/testlib/test/CollectionTest.kt @@ -67,7 +67,7 @@ class CollectionTest() : TestSupport() { fun testFilterIntoLinkedList() { // TODO would be nice to avoid the - val foo = data.filter(linkedList()){it.startsWith("f")} + val foo = data.filterTo(linkedList()){it.startsWith("f")} assertTrue { foo.all{it.startsWith("f")} @@ -82,7 +82,7 @@ class CollectionTest() : TestSupport() { fun testFilterIntoSortedSet() { // TODO would be nice to avoid the - val foo = data.filter(hashSet()){it.startsWith("f")} + val foo = data.filterTo(hashSet()){it.startsWith("f")} assertTrue { foo.all{it.startsWith("f")}