Make BlackBox tests for Java 9 generated
This commit is contained in:
+1
-5
@@ -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
@@ -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
@@ -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
@@ -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) }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user