[Backend] Reorganize version 1.0 codegen tests
- Extract all backend codegen tests that specifically target behaviour in to-be-deprecated functionality from language versions < 1.3" - Remove those tests from the JVM IR test suite.
This commit is contained in:
committed by
Alexander Udalov
parent
38ea5a85a3
commit
8af3b3e51e
-1
@@ -1,7 +1,6 @@
|
||||
// !LANGUAGE: -ProperIeee754Comparisons
|
||||
// !API_VERSION: 1.0
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR
|
||||
|
||||
fun box(): String {
|
||||
@@ -1,34 +0,0 @@
|
||||
// !LANGUAGE: +ProperIeee754Comparisons
|
||||
|
||||
fun box(): String {
|
||||
val plusZero: Any = 0.0
|
||||
val minusZero: Any = -0.0
|
||||
val nullDouble: Double? = null
|
||||
if (plusZero is Double) {
|
||||
when (plusZero) {
|
||||
nullDouble -> {
|
||||
return "fail 1"
|
||||
}
|
||||
-0.0 -> {
|
||||
}
|
||||
else -> {
|
||||
return "fail 2"
|
||||
}
|
||||
}
|
||||
|
||||
if (minusZero is Double) {
|
||||
when (plusZero) {
|
||||
nullDouble -> {
|
||||
return "fail 3"
|
||||
}
|
||||
minusZero -> {
|
||||
}
|
||||
else -> {
|
||||
return "fail 4"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !API_VERSION: 1.0
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
fun myEquals(a: Double?, b: Double?) = a == b
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !API_VERSION: 1.0
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
fun myNotEquals(a: Double?, b: Double?) = a != b
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !API_VERSION: 1.0
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
fun myEquals(a: Float?, b: Float?) = a == b
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !API_VERSION: 1.0
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
fun myNotEquals(a: Float?, b: Float?) = a != b
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !API_VERSION: 1.0
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
fun equals5(a: Any?, b: Any?) = if (a is Double && b is Double?) a == b else null!!
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !API_VERSION: 1.0
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
fun equals5(a: Any?, b: Any?) = if (a is Float && b is Float?) a == b else null!!
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !API_VERSION: 1.0
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
fun box(): String {
|
||||
val plusZero: Any = 0.0
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !API_VERSION: 1.0
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
fun box(): String {
|
||||
val nullValue: Any? = null
|
||||
Reference in New Issue
Block a user