mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 16:29:21 +00:00
* less confusing assertion messages (seemingly contradictory in case of failure)
This commit is contained in:
parent
9bd3a6758a
commit
db9edb477e
@ -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]
|
||||
|
@ -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\"")
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user