Fix warnings in compiler code and tests
This commit is contained in:
committed by
Alexander Udalov
parent
ebfbc2f601
commit
d9efc2d922
+2
@@ -118,7 +118,9 @@ abstract class AbstractLocalVariableTest : AbstractDebugTest() {
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val compressedLog = compressRunsWithoutLinenumber(loggedItems as List<LVTStep>, LVTStep::location)
|
||||
|
||||
val actualLocalVariables = compressedLog.joinToString("\n") {
|
||||
"// ${it.location.formatAsExpectation()}: ${it.visibleVars.joinToString(", ")}".trim()
|
||||
}
|
||||
|
||||
+1
-1
@@ -56,6 +56,7 @@ abstract class AbstractSteppingTest : AbstractDebugTest() {
|
||||
val lines = wholeFile.readLines()
|
||||
val forceStepInto = lines.any { it.startsWith(FORCE_STEP_INTO_MARKER) }
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val actualLineNumbers = compressRunsWithoutLinenumber(loggedItems as List<LocatableEvent>, LocatableEvent::location)
|
||||
.filter {
|
||||
val location = it.location()
|
||||
@@ -98,4 +99,3 @@ abstract class AbstractSteppingTest : AbstractDebugTest() {
|
||||
assertEqualsToFile(wholeFile, actual.joinToString("\n"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user