[K/N][tests] Added a bunch of tests on incremental compilation
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package test1
|
||||
|
||||
interface I {
|
||||
fun baz(): String
|
||||
fun foo(): Int
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test1
|
||||
|
||||
interface I {
|
||||
fun foo(): Int
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test2
|
||||
|
||||
import test1.*
|
||||
|
||||
fun bar(x: I) = x.foo()
|
||||
@@ -0,0 +1,13 @@
|
||||
import kotlin.test.*
|
||||
import test1.*
|
||||
import test2.*
|
||||
|
||||
class IImpl : I {
|
||||
override fun baz() = "zzz"
|
||||
override fun foo() = 42
|
||||
}
|
||||
|
||||
@Test
|
||||
fun runTest() {
|
||||
assertEquals(42, bar(IImpl()))
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import kotlin.test.*
|
||||
import test1.*
|
||||
import test2.*
|
||||
|
||||
class IImpl : I {
|
||||
override fun foo() = 42
|
||||
}
|
||||
|
||||
@Test
|
||||
fun runTest() {
|
||||
assertEquals(42, bar(IImpl()))
|
||||
}
|
||||
Reference in New Issue
Block a user