Minor: use method names in bytecode text tests
This commit is contained in:
@@ -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
|
fun testLongWithObjectArray(i: Long, xs: Array<Any>) = i in xs.indices
|
||||||
|
|
||||||
// 0 INVOKESTATIC kotlin/collections/ArraysKt.getIndices
|
// 0 getIndices
|
||||||
// 0 INVOKEVIRTUAL kotlin/ranges/IntRange.contains
|
// 0 contains
|
||||||
// 4 I2L
|
// 4 I2L
|
||||||
// 4 ARRAYLENGTH
|
// 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
|
fun testLongWithCharSequence(i: Long, cs: CharSequence) = i in cs.indices
|
||||||
|
|
||||||
// 0 INVOKESTATIC kotlin/text/StringsKt.getIndices
|
// 0 getIndices
|
||||||
// 0 INVOKEVIRTUAL kotlin/ranges/IntRange.contains
|
// 0 contains
|
||||||
// 2 INVOKEINTERFACE java/lang/CharSequence.length
|
// 2 length
|
||||||
// 2 I2L
|
// 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
|
fun testLongWithCollection(i: Long, xs: List<Any>) = i in xs.indices
|
||||||
|
|
||||||
// 0 INVOKESTATIC kotlin/collections/CollectionsKt.getIndices
|
// 0 getIndices
|
||||||
// 0 INVOKEVIRTUAL kotlin/ranges/IntRange.contains
|
// 0 contains
|
||||||
// 2 INVOKEINTERFACE java/util/Collection.size
|
// 2 size
|
||||||
// 2 I2L
|
// 2 I2L
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ fun inCharWithNullableParameter(x: Char?, left: Char, right: Char) = x!! in left
|
|||||||
|
|
||||||
// 0 INVOKESPECIAL
|
// 0 INVOKESPECIAL
|
||||||
// 0 NEW
|
// 0 NEW
|
||||||
// 1 INVOKEVIRTUAL java/lang/Character.charValue
|
// 1 charValue
|
||||||
// 1 INVOKEVIRTUAL
|
// 1 INVOKEVIRTUAL
|
||||||
// 0 CHECKCAST
|
// 0 CHECKCAST
|
||||||
// 0 INVOKEINTERFACE
|
// 0 INVOKEINTERFACE
|
||||||
|
|||||||
@@ -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
|
fun testLong(a: Long, x: Long, y: Long) = a in x until y
|
||||||
|
|
||||||
// 0 INVOKESTATIC kotlin/ranges/RangesKt.until
|
// 0 until
|
||||||
// 0 INVOKEVIRTUAL
|
// 0 INVOKEVIRTUAL
|
||||||
Reference in New Issue
Block a user