Make BlackBox tests for Java 9 generated

This commit is contained in:
Denis.Zharkov
2020-11-24 18:12:26 +03:00
parent 5d05419016
commit 059e2aab7a
12 changed files with 96 additions and 127 deletions
+1 -5
View File
@@ -7,8 +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"
}
fun main() {
box().let { if (it != "OK") throw AssertionError(it) }
}
}
+1 -5
View File
@@ -15,8 +15,4 @@ fun box(): String {
return if (result.length != 200)
"fail: ${result.length}" else "OK"
}
fun main() {
box().let { if (it != "OK") throw AssertionError(it) }
}
}
+1 -5
View File
@@ -16,8 +16,4 @@ fun box(): String {
return if (result.length != 201)
"fail: ${result.length}" else "OK"
}
fun main() {
box().let { if (it != "OK") throw AssertionError(it) }
}
}
@@ -15,8 +15,4 @@ fun box(): String {
return if (result.length != 200)
"fail: ${result.length}" else "OK"
}
fun main() {
box().let { if (it != "OK") throw AssertionError(it) }
}
}
@@ -16,8 +16,4 @@ fun box(): String {
return if (result.length != 201)
"fail: ${result.length}" else "OK"
}
fun main() {
box().let { if (it != "OK") throw AssertionError(it) }
}
}
@@ -24,8 +24,4 @@ fun box(): String {
if (test5 != "2nullnull") return "fail 5: $test5"
return "OK"
}
fun main() {
box().let { if (it != "OK") throw AssertionError(it) }
}
@@ -18,8 +18,4 @@ fun box(): String {
val result2 = test { it + "_" }
return if (result2 != "12_3456_789_10") "fail 2: $result2" else "OK"
}
fun main() {
box().let { if (it != "OK") throw AssertionError(it) }
}
+1 -5
View File
@@ -31,8 +31,4 @@ fun box(): String {
}
return if (handle.getVolatile(array, index) == newValue) "OK" else "Fail"
}
fun main() {
box().let { if (it != "OK") throw AssertionError(it) }
}
}