Minor: use method names in bytecode text tests

This commit is contained in:
Dmitry Petrov
2017-07-07 12:55:10 +03:00
parent 905a16e1df
commit 22e12dc139
5 changed files with 10 additions and 10 deletions
@@ -8,7 +8,7 @@ fun testLongWithPrimitiveArray(i: Long, ints: IntArray) = i in ints.indices
fun testLongWithObjectArray(i: Long, xs: Array<Any>) = i in xs.indices
// 0 INVOKESTATIC kotlin/collections/ArraysKt.getIndices
// 0 INVOKEVIRTUAL kotlin/ranges/IntRange.contains
// 0 getIndices
// 0 contains
// 4 I2L
// 4 ARRAYLENGTH
@@ -4,8 +4,8 @@ fun testCharSequence(i: Int, cs: CharSequence) = i in cs.indices
fun testLongWithCharSequence(i: Long, cs: CharSequence) = i in cs.indices
// 0 INVOKESTATIC kotlin/text/StringsKt.getIndices
// 0 INVOKEVIRTUAL kotlin/ranges/IntRange.contains
// 2 INVOKEINTERFACE java/lang/CharSequence.length
// 0 getIndices
// 0 contains
// 2 length
// 2 I2L
@@ -4,7 +4,7 @@ fun testCollection(i: Int, xs: List<Any>) = i in xs.indices
fun testLongWithCollection(i: Long, xs: List<Any>) = i in xs.indices
// 0 INVOKESTATIC kotlin/collections/CollectionsKt.getIndices
// 0 INVOKEVIRTUAL kotlin/ranges/IntRange.contains
// 2 INVOKEINTERFACE java/util/Collection.size
// 0 getIndices
// 0 contains
// 2 size
// 2 I2L
@@ -18,7 +18,7 @@ fun inCharWithNullableParameter(x: Char?, left: Char, right: Char) = x!! in left
// 0 INVOKESPECIAL
// 0 NEW
// 1 INVOKEVIRTUAL java/lang/Character.charValue
// 1 charValue
// 1 INVOKEVIRTUAL
// 0 CHECKCAST
// 0 INVOKEINTERFACE
+1 -1
View File
@@ -8,5 +8,5 @@ fun testInt(a: Int, x: Int, y: Int) = a in x until y
fun testLong(a: Long, x: Long, y: Long) = a in x until y
// 0 INVOKESTATIC kotlin/ranges/RangesKt.until
// 0 until
// 0 INVOKEVIRTUAL