Fix tests: "infix modifier required" and "operator modifier required" errors
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
fun box(): String {
|
||||
val sb = StringBuilder()
|
||||
|
||||
for (i in -1..1) {
|
||||
for (j in -1..1) {
|
||||
val a = i compareTo j
|
||||
val b = i.compareTo(j)
|
||||
if (a != b) {
|
||||
sb.append("$i compareTo $j: $a != $b\n")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sb.length == 0) return "OK"
|
||||
return "Fail:\n$sb"
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
fun box(): String {
|
||||
if (12.toString() equals "13") {
|
||||
if (12.toString().equals("13")) {
|
||||
return "Fail"
|
||||
}
|
||||
return "OK"
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
fun box(): String {
|
||||
val o = "OK" get 0
|
||||
val array = CharArray(2)
|
||||
array[1] = 'K'
|
||||
val k = array get 1
|
||||
|
||||
return "$o$k"
|
||||
}
|
||||
Reference in New Issue
Block a user