Change evaluation test data not to encounter special implementation of single element list.

This commit is contained in:
Ilya Gorbunov
2016-04-23 01:56:51 +03:00
parent a665b2183c
commit d70b46fd37
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ Compile bytecode for arrayListOf(1, 2, 101, 102).filter { it > 100 }
Compile bytecode for arrayListOf(1, 2).max() Compile bytecode for arrayListOf(1, 2).max()
Compile bytecode for arrayListOf(1, 2).count() Compile bytecode for arrayListOf(1, 2).count()
Compile bytecode for arrayListOf(1, 2).size Compile bytecode for arrayListOf(1, 2).size
Compile bytecode for arrayListOf(1, 2).drop(1) Compile bytecode for arrayListOf(1, 2, 3).drop(1)
Compile bytecode for ar.map { if (it > 50) "big" else "small" } Compile bytecode for ar.map { if (it > 50) "big" else "small" }
.filter { it == "small" } .filter { it == "small" }
.size .size
@@ -21,5 +21,5 @@ fun main(args: Array<String>) {
// EXPRESSION: arrayListOf(1, 2).size // EXPRESSION: arrayListOf(1, 2).size
// RESULT: 2: I // RESULT: 2: I
// EXPRESSION: arrayListOf(1, 2).drop(1) // EXPRESSION: arrayListOf(1, 2, 3).drop(1)
// RESULT: instance of java.util.ArrayList(id=ID): Ljava/util/ArrayList; // RESULT: instance of java.util.ArrayList(id=ID): Ljava/util/ArrayList;