Tóth István Zoltán
05/07/2024, 6:43 AMcom.intellij.rt.execution.junit.FileComparisonFailure: Actual data differs from file content:
fun Adaptive.higherFun(higherI: Int, lowerFun: Adaptive.(lowerFunI: Int) -> Unit) {
higherFunInner(higherI * 2) { lowerFunInnerI ->
lowerFun(higherI + lowerFunInnerI)
}
}
fun Adaptive.higherFun(higherI: Int, lowerFun: Adaptive.(lowerFunI: Int) -> Unit) {
higherFunInner(higherI <!MISSING_DEPENDENCY_SUPERCLASS!>*<!> 2) { lowerFunInnerI ->
lowerFun(higherI <!MISSING_DEPENDENCY_SUPERCLASS!>+<!> lowerFunInnerI)
}
}
dmitriy.novozhilov
05/07/2024, 3:40 PMTóth István Zoltán
05/07/2024, 3:55 PMdmitriy.novozhilov
05/07/2024, 3:57 PM("")
to the diagnostic in the testdata and rerun the test to see what exact class is missing
<!MISSING_DEPENDENCY_SUPERCLASS!("")>*<!> 2
Tóth István Zoltán
05/07/2024, 3:57 PMTóth István Zoltán
05/07/2024, 4:16 PM("")
. This test is not a diagnostic test but a box test that is supposed to be successful. Actually, I get the fir.ir.txt
and ir.txt
files generated and they do not contain this missing dependency line.
But when I run the test it fails with (in this case it is String.startsWith):
Actual data differs from file content: basic.kt
<Click to see difference>
com.intellij.rt.execution.junit.FileComparisonFailure: Actual data differs from file content: basic.kt expected:<...return if (response.[startsWith("i:1 s:hello BasicServiceContext(")) "OK" else "Fail (response=$response)"
}]> but was:<...return if (response.[<!MISSING_DEPENDENCY_SUPERCLASS!>startsWith<!>("i:1 s:hello BasicServiceContext(")) "OK" else "Fail (response=$response)"
}
]>
at org.jetbrains.kotlin.test.services.JUnit5Assertions.assertEqualsToFile(JUnit5Assertions.kt:74)
at org.jetbrains.kotlin.test.services.JUnit5Assertions.assertEqualsToFile(JUnit5Assertions.kt:28)
dmitriy.novozhilov
05/07/2024, 4:17 PMdmitriy.novozhilov
05/07/2024, 4:18 PMTóth István Zoltán
05/07/2024, 4:28 PMtestData/box/simple.kt
◦ (result == "Hello world")
to result.startsWith("Hello world")
• run tests, simple fails with:
Multiple Failures (2 failures)
com.intellij.rt.execution.junit.FileComparisonFailure: Content is not equal: simple.fir.txt expected:<...en () {
[==(R|<local>/result|, ]String(Hello world))...> but was:<...en () {
[R|<local>/result|.R|kotlin/text/startsWith|(]String(Hello world))...>
com.intellij.rt.execution.junit.FileComparisonFailure: Actual data differs from file content: simple.fir.ir.txt
<Click to see difference>
dmitriy.novozhilov
05/07/2024, 4:28 PMTóth István Zoltán
05/07/2024, 4:29 PMdmitriy.novozhilov
05/08/2024, 7:53 AMTóth István Zoltán
05/09/2024, 4:25 AM// WITH_STDLIB
in the first line of the file, I don't have that. I tried to add it but the error is still there.
I use useCustomRuntimeClasspathProviders
to add the shadow jar file I generate with the base library, probably that's not compatible with the changes in the compiler.
I'll try to figure out what's wrong with that. Thx for the help.Tóth István Zoltán
05/09/2024, 4:29 AMBaseTestRunner
:
+ JvmEnvironmentConfigurationDirectives.FULL_JDK