Replace ArrayList<Any>() with stdlib_emptyListClass() and fix test. #KT-6013 Fixed

This commit is contained in:
Ilya Ryzhenkov
2014-11-05 18:04:52 +03:00
parent 0dc68c2702
commit 24ee79aa2d
7 changed files with 23 additions and 17 deletions
@@ -442,8 +442,8 @@ class CollectionTest {
expect(listOf(1, 2, 3, 4, 5)) { (1..10).toList().take(5) }
expect(listOf(1, 2)) { (1..10) take 2 }
expect(listOf(1, 2)) { (1..10).toList().take(2) }
expect(listOf<Long>()) { (0L..5L) take 0 }
expect(listOf<Long>()) { listOf(1L) take 0 }
expect(true) { (0L..5L).take(0).none() }
expect(true) { listOf(1L).take(0).none() }
expect(listOf(1)) { (1..1) take 10 }
expect(listOf(1)) { listOf(1) take 10 }
}