Skip to content

Commit

Permalink
[Test] Update all testdata files in LatestLVIdenticalChecker
Browse files Browse the repository at this point in the history
Previously it didn't remove the `LATEST_LV_DIFFERENCE` directive
from `.ll.kt` and `.reversed.kt` files
  • Loading branch information
demiurg906 authored and Space Cloud committed Jan 22, 2025
1 parent a297c28 commit 3e4d906
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,20 @@ class LatestLVIdenticalChecker(testServices: TestServices) : AbstractFirIdentica
if (helper.contentsAreEquals(originalFile, testDataFile)) {
helper.deleteFirFile(testDataFile)
testServices.assertions.assertAll(
{ helper.removeDirectiveFromClassicFileAndAssert(originalFile, FirDiagnosticsDirectives.LATEST_LV_DIFFERENCE, message) },
{
if (additionalFile != null) {
helper.removeDirectiveFromClassicFileAndAssert(additionalFile, FirDiagnosticsDirectives.LATEST_LV_DIFFERENCE, message)
buildList {
listOf(
originalFile.originalTestDataFile,
originalFile.firTestDataFile,
originalFile.llFirTestDataFile,
originalFile.reversedTestDataFile
).filter { it.exists() }
.mapTo(this) { file ->
{ helper.removeDirectiveFromClassicFileAndAssert(file, FirDiagnosticsDirectives.LATEST_LV_DIFFERENCE, message) }
}
add {
if (additionalFile != null) {
helper.removeDirectiveFromClassicFileAndAssert(additionalFile, FirDiagnosticsDirectives.LATEST_LV_DIFFERENCE, message)
}
}
}
)
Expand Down

0 comments on commit 3e4d906

Please sign in to comment.