[Test] Migrate tests for java 9 to regular test infrastructure

This commit is contained in:
Dmitriy Novozhilov
2021-07-14 13:27:10 +03:00
committed by teamcityserver
parent ca214bef30
commit 4f73ebbcbd
28 changed files with 303 additions and 246 deletions
@@ -1,4 +1,4 @@
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
// STRING_CONCAT: indy-with-constants
// JVM_TARGET: 9
fun box(): String {
val p = 3147483648u
@@ -7,4 +7,4 @@ fun box(): String {
val s = a + "1" + "2" + 3 + 4L + b + 5.0 + 6F + '7' + true + false + 3147483647u + p
return if (s != "_1234_5.06.07truefalse31474836473147483648") "fail $s" else "OK"
}
}
@@ -1,4 +1,4 @@
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
// STRING_CONCAT: indy-with-constants
// JVM_TARGET: 9
fun box(): String {
val z = "0"
@@ -15,4 +15,4 @@ fun box(): String {
return if (result.length != 200)
"fail: ${result.length}" else "OK"
}
}
@@ -1,4 +1,4 @@
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
// STRING_CONCAT: indy-with-constants
// JVM_TARGET: 9
fun test(z: Long): String {
val result = "" + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z +
@@ -24,4 +24,4 @@ fun box(): String {
return if (result != "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
"fail 2: ${result}"
else "OK"
}
}
@@ -1,4 +1,4 @@
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
// STRING_CONCAT: indy-with-constants
// JVM_TARGET: 9
fun box(): String {
val z = "0"
@@ -16,4 +16,4 @@ fun box(): String {
return if (result.length != 201)
"fail: ${result.length}" else "OK"
}
}
@@ -1,4 +1,4 @@
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy
// STRING_CONCAT: indy
// JVM_TARGET: 9
fun box(): String {
val z = "0"
@@ -15,4 +15,4 @@ fun box(): String {
return if (result.length != 200)
"fail: ${result.length}" else "OK"
}
}
@@ -1,4 +1,4 @@
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy
// STRING_CONCAT: indy
// JVM_TARGET: 9
fun test(z: Long): String {
val result = "" + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z +
@@ -24,4 +24,4 @@ fun box(): String {
return if (result != "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
"fail 2: ${result}"
else "OK"
}
}
@@ -1,4 +1,4 @@
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy
// STRING_CONCAT: indy
// JVM_TARGET: 9
fun box(): String {
val z = "0"
@@ -16,4 +16,4 @@ fun box(): String {
return if (result.length != 201)
"fail: ${result.length}" else "OK"
}
}
@@ -1,4 +1,4 @@
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
// STRING_CONCAT: indy-with-constants
// JVM_TARGET: 9
inline class Str(val s: String)
inline class NStr(val s: String?)
@@ -24,4 +24,4 @@ fun box(): String {
if (test5 != "2nullnull") return "fail 5: $test5"
return "OK"
}
}
@@ -1,4 +1,4 @@
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
// STRING_CONCAT: indy-with-constants
// JVM_TARGET: 9
inline fun test(crossinline s: (String) -> String): String {
var result = "1" + s("2") + "3" + 4 + {
@@ -18,4 +18,4 @@ fun box(): String {
val result2 = test { it + "_" }
return if (result2 != "12_3456_789_10") "fail 2: $result2" else "OK"
}
}
@@ -1,6 +1,5 @@
// !LANGUAGE: +PolymorphicSignature
// TARGET_BACKEND: JVM
// FULL_JDK
// SKIP_JDK6
// WITH_RUNTIME
@@ -30,4 +29,4 @@ fun box(): String {
}
return if (handle.getVolatile(array, index) == newValue) "OK" else "Fail"
}
}