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
+17
@@ -0,0 +1,17 @@
|
||||
class A {
|
||||
fun Double.foo(a: Double = 1.0, b: Double = 1.0): Double {
|
||||
return a + b
|
||||
}
|
||||
|
||||
fun test(): String {
|
||||
if (1.0.foo() != 2.0) return "fail"
|
||||
if (1.0.foo(2.0, 2.0) != 4.0) return "fail"
|
||||
if (1.0.foo(a = 2.0) != 3.0) return "fail"
|
||||
if (1.0.foo(b = 2.0) != 3.0) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return A().test()
|
||||
}
|
||||
Reference in New Issue
Block a user