[K/N][tests] Added a bunch of tests on incremental compilation
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package test1
|
||||
|
||||
fun foo() = 20
|
||||
@@ -0,0 +1,3 @@
|
||||
package test1
|
||||
|
||||
fun foo() = 21
|
||||
@@ -0,0 +1,3 @@
|
||||
package test2
|
||||
|
||||
fun bar() = 117
|
||||
@@ -0,0 +1,5 @@
|
||||
package test2
|
||||
|
||||
import test1.*
|
||||
|
||||
fun baz() = foo() * 2
|
||||
@@ -0,0 +1,9 @@
|
||||
import kotlin.test.*
|
||||
import test1.*
|
||||
import test2.*
|
||||
|
||||
@Test
|
||||
fun runTest() {
|
||||
assertEquals(117, bar())
|
||||
assertEquals(40, baz())
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import kotlin.test.*
|
||||
import test1.*
|
||||
import test2.*
|
||||
|
||||
@Test
|
||||
fun runTest() {
|
||||
assertEquals(117, bar())
|
||||
assertEquals(42, baz())
|
||||
}
|
||||
Reference in New Issue
Block a user