Use kts file extension instead of kt in tests...

since all "kt" files are now considered - definitely non-scripts
This commit is contained in:
Ilya Chernikov
2018-05-03 10:25:53 +02:00
parent 24e8e7c40d
commit 22439250e2
4 changed files with 5 additions and 5 deletions
@@ -50,7 +50,7 @@ class ScriptGenTest : CodegenTestCase() {
}
fun testLanguage() {
setUpEnvironment("scriptCustom/fib.lang.kt")
setUpEnvironment("scriptCustom/fib.lang.kts")
val aClass = generateClass("Fib_lang")
val constructor = aClass.getConstructor(Integer.TYPE)
@@ -61,7 +61,7 @@ class ScriptGenTest : CodegenTestCase() {
}
fun testLanguageWithPackage() {
setUpEnvironment("scriptCustom/fibwp.lang.kt")
setUpEnvironment("scriptCustom/fibwp.lang.kts")
val aClass = generateClass("test.Fibwp_lang")
val constructor = aClass.getConstructor(Integer.TYPE)
@@ -72,7 +72,7 @@ class ScriptGenTest : CodegenTestCase() {
}
fun testDependentScripts() {
setUpEnvironment(listOf("scriptCustom/fibwp.lang.kt", "scriptCustom/fibwprunner.kts"))
setUpEnvironment(listOf("scriptCustom/fibwp.lang.kts", "scriptCustom/fibwprunner.kts"))
val aClass = generateClass("Fibwprunner")
val constructor = aClass.getConstructor()
@@ -88,7 +88,7 @@ class ScriptGenTest : CodegenTestCase() {
}
fun testScriptWhereMethodHasClosure() {
setUpEnvironment("scriptCustom/methodWithClosure.lang.kt")
setUpEnvironment("scriptCustom/methodWithClosure.lang.kts")
val aClass = generateClass("MethodWithClosure_lang")
val constructor = aClass.getConstructor(Integer.TYPE)
@@ -127,6 +127,6 @@ class ScriptGenTest : CodegenTestCase() {
}
@ScriptTemplateDefinition(
scriptFilePattern =".*\\.lang\\.kt",
scriptFilePattern =".*\\.lang\\.kts",
resolver = TestKotlinScriptDependenciesResolver::class)
abstract class ScriptWithIntParam(val num: Int)