Unify script file extensions to "kts" so that IDEA, compiler and tests agree when to parse as SCRIPT.
Include kt* files into formatter test generation, to test scripting formatting
This commit is contained in:
committed by
Andrey Breslav
parent
4ba423ee16
commit
98c54f39bb
@@ -109,7 +109,7 @@ fun main(args: Array<String>) {
|
||||
|
||||
testClass(javaClass<AbstractJetDiagnosticsTest>()) {
|
||||
model("diagnostics/tests")
|
||||
model("diagnostics/tests/script", extension = "ktscript")
|
||||
model("diagnostics/tests/script", extension = "kts")
|
||||
model("codegen/box/functions/tailRecursion")
|
||||
}
|
||||
|
||||
@@ -469,8 +469,8 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
|
||||
testClass(javaClass<AbstractJetFormatterTest>()) {
|
||||
model("formatter", pattern = """^([^\.]+)\.after.kt$""")
|
||||
model("formatter", pattern = """^([^\.]+)\.after.inv.kt$""",
|
||||
model("formatter", pattern = """^([^\.]+)\.after\.kt.*$""")
|
||||
model("formatter", pattern = """^([^\.]+)\.after\.inv\.kt.*$""",
|
||||
testMethod = "doTestInverted", testClassName = "FormatterInverted")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user