mirror of
https://github.com/irmen/prog8.git
synced 2025-11-02 13:16:07 +00:00
tests for register args for normal subs
some warnings demoted into infos
This commit is contained in:
@@ -131,9 +131,9 @@ class TestNumbers: FunSpec({
|
||||
val errors = ErrorReporterForTests(keepMessagesAfterReporting = true)
|
||||
compileText(C64Target(), true, src, writeAssembly = false, errors=errors) shouldNotBe null
|
||||
errors.errors.size shouldBe 0
|
||||
errors.warnings.size shouldBe 2
|
||||
errors.warnings[0] shouldContain "converted to float"
|
||||
errors.warnings[1] shouldContain "converted to float"
|
||||
errors.infos.size shouldBe 2
|
||||
errors.infos[0] shouldContain "converted to float"
|
||||
errors.infos[1] shouldContain "converted to float"
|
||||
}
|
||||
|
||||
test("implicit float conversion error if not enabled") {
|
||||
|
||||
Reference in New Issue
Block a user