Support test with self imports, kotlin multifile tests
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// FILE: A.kt
|
||||
|
||||
package first
|
||||
import second.C
|
||||
|
||||
open class A {
|
||||
protected open fun test(): String = "FAIL (A)"
|
||||
}
|
||||
|
||||
fun box() = second.C().value()
|
||||
fun box() = C().value()
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
|
||||
@@ -28,5 +28,5 @@ fun box(): String {
|
||||
|
||||
foo2()().run()
|
||||
|
||||
return test.sideEffects
|
||||
return sideEffects
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,6 +17,6 @@ import a.foo
|
||||
import a.inlineOnly
|
||||
|
||||
fun box(): String {
|
||||
if (!a.inlineOnly<String>("OK")) return "fail 1"
|
||||
if (!inlineOnly<String>("OK")) return "fail 1"
|
||||
return foo { "OK" }
|
||||
}
|
||||
|
||||
+1
-1
@@ -15,6 +15,6 @@ import a.foo
|
||||
import a.inlineOnly
|
||||
|
||||
fun box(): String {
|
||||
if (!a.inlineOnly<String>("OK")) return "fail 1"
|
||||
if (!inlineOnly<String>("OK")) return "fail 1"
|
||||
return foo { "OK" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user