* less confusing assertion messages (seemingly contradictory in case of failure)

This commit is contained in:
meisl 2021-07-02 12:38:24 +02:00
parent 9bd3a6758a
commit db9edb477e
2 changed files with 5 additions and 4 deletions

View File

@ -51,7 +51,7 @@ class TestCompilerOnCharLit {
libdirs = listOf(),
outputDir
)
assertTrue(result.success, "compilation successful")
assertTrue(result.success, "compilation should succeed")
val program = result.programAst
val startSub = program.entrypoint()
@ -77,7 +77,7 @@ class TestCompilerOnCharLit {
libdirs = listOf(),
outputDir
)
assertTrue(result.success, "compilation successful")
assertTrue(result.success, "compilation should succeed")
val program = result.programAst
val startSub = program.entrypoint()
val funCall = startSub.statements.filterIsInstance<IFunctionCall>()[0]
@ -113,7 +113,7 @@ class TestCompilerOnCharLit {
libdirs = listOf(),
outputDir
)
assertTrue(result.success, "compilation successful")
assertTrue(result.success, "compilation should succeed")
val program = result.programAst
val startSub = program.entrypoint()
val funCall = startSub.statements.filterIsInstance<IFunctionCall>()[0]

View File

@ -46,7 +46,8 @@ class TestCompilerOnExamples {
libdirs = listOf(),
outputDir
)
assertTrue(result.success, "${platform.name}, optimize=$optimize: \"$filepath\"")
assertTrue(result.success,
"compilation should succeed; ${platform.name}, optimize=$optimize: \"$filepath\"")
}