Reuse JVM box tests for binary operations in JS, excluding those that can't pass now.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// reason - multifile tests are not supported in JS tests
|
||||
//FILE: Holder.java
|
||||
|
||||
class Holder {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// reason - multifile tests are not supported in JS tests
|
||||
//FILE: JavaClass.java
|
||||
|
||||
class JavaClass {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// reason - no ArithmeticException in JS
|
||||
fun box(): String {
|
||||
val a1 = 0
|
||||
val a2 = try { 1 / 0 } catch(e: ArithmeticException) { 0 }
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// reason - Int doesn't overflow in JS, TODO: include after KT-7733 is fixed
|
||||
fun box(): String {
|
||||
val i1: Int = Int.MAX_VALUE
|
||||
val i2 = i1 + 1
|
||||
|
||||
Reference in New Issue
Block a user