Kapt tests: change _ir.txt to .ir.txt
To be consistent with test data of other compiler tests.
This commit is contained in:
committed by
Space Team
parent
f0ea8ab81b
commit
2849e45111
@@ -13,7 +13,7 @@ import org.jetbrains.kotlin.test.utils.withSuffixAndExtension
|
||||
fun Assertions.checkTxtAccordingToBackend(module: TestModule, actual: String, fileSuffix: String = "") {
|
||||
val testDataFile = module.files.first().originalFile
|
||||
val txtFile = testDataFile.withExtension("$fileSuffix.txt")
|
||||
val irTxtFile = testDataFile.withSuffixAndExtension("${fileSuffix}_ir", ".txt")
|
||||
val irTxtFile = testDataFile.withSuffixAndExtension("$fileSuffix.ir", ".txt")
|
||||
val isIr = module.targetBackend?.isIR == true
|
||||
val expectedFile = if (isIr && irTxtFile.exists()) {
|
||||
irTxtFile
|
||||
|
||||
Reference in New Issue
Block a user