[FIR] Enable BytecodeText tests for FIR.

143 out of 767 tests (18.6%) are currently failing.
This commit is contained in:
Mark Punzalan
2020-09-29 00:25:09 +00:00
committed by Mikhail Glukhikh
parent 69cd729506
commit 238cc7c257
146 changed files with 5146 additions and 1 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun testPrimitiveArray(i: Int, ints: IntArray) = i in ints.indices
fun testObjectArray(i: Int, xs: Array<Any>) = i in xs.indices
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun testCharSequence(i: Int, cs: CharSequence) = i in cs.indices
fun testLongWithCharSequence(i: Long, cs: CharSequence) = i in cs.indices
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun testCollection(i: Int, xs: List<Any>) = i in xs.indices
fun testLongWithCollection(i: Long, xs: List<Any>) = i in xs.indices
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun test1(a: String) = a in "alpha" .. "omega"
fun test2(a: String) = a !in "alpha" .. "omega"
fun <T : Comparable<T>> test3(x: T, left: T, right: T) = x in left .. right
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun ub_ub(x: UByte, a: UByte, b: UByte) = x in a..b
fun ub_us(x: UByte, a: UShort, b: UShort) = x in a..b
fun ub_ui(x: UByte, a: UInt, b: UInt) = x in a..b
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// ULong in range of UInt, uses non-intrinsic 'contains' for non-IR backend
fun ul_ub(x: ULong, a: UByte, b: UByte) = x in a..b
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun inInt(x: Long): Boolean {
return x in 1..2
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun Byte.inByte(left: Byte, right: Byte) = this in left..right
fun Short.inInt(left: Int, right: Int) = this in left .. right
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun testUIntRangeLiteral(a: UInt, b: UInt) = 42u in a .. b
fun testULongRangeLiteral(a: ULong, b: ULong) = 42UL in a .. b
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun testChar(a: Char, x: Char, y: Char) = a in x until y
fun testByte(a: Byte, x: Byte, y: Byte) = a in x until y