Remove generated codegen tests, move all testData to box/
A single test file will be generated out of box/ directory
This commit is contained in:
committed by
Alexander Udalov
parent
41a416da60
commit
7ce62a5b64
@@ -0,0 +1,14 @@
|
||||
class A(val x: Int)
|
||||
|
||||
fun A.compareTo(other: A) = x.compareTo(other.x)
|
||||
|
||||
fun checkLess(x: A, y: A) = when {
|
||||
x >= y -> "Fail $x >= $y"
|
||||
!(x < y) -> "Fail !($x < $y)"
|
||||
!(x <= y) -> "Fail !($x <= $y)"
|
||||
x > y -> "Fail $x > $y"
|
||||
x.compareTo(y) >= 0 -> "Fail $x.compareTo($y) >= 0"
|
||||
else -> "OK"
|
||||
}
|
||||
|
||||
fun box() = checkLess(A(0), A(1))
|
||||
Reference in New Issue
Block a user