Use common assertion in ir-tests and proper arithmetic flag
This commit is contained in:
+3
-5
@@ -1,8 +1,6 @@
|
||||
fun <T> assertEquals(actual: T, expected: T) {
|
||||
if (actual != expected) {
|
||||
throw java.lang.AssertionError("Assertion failed: $actual != $expected")
|
||||
}
|
||||
}
|
||||
//WITH_RUNTIME
|
||||
//IGNORE_BACKEND: JS_IR
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class Test(val x: Int) {
|
||||
val y = x + 1
|
||||
|
||||
Reference in New Issue
Block a user