simplified CompilationResult a bit

This commit is contained in:
Irmen de Jong
2022-03-07 21:41:12 +01:00
parent 2b6f5dbd59
commit db7ae028b2
21 changed files with 161 additions and 196 deletions
@@ -1,8 +1,8 @@
package prog8tests.codegeneration
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldNotBe
import prog8.codegen.target.C64Target
import prog8tests.helpers.assertSuccess
import prog8tests.helpers.compileText
@@ -24,7 +24,7 @@ class TestVariables: FunSpec({
}
}
"""
compileText(C64Target(), true, text, writeAssembly = true).assertSuccess()
compileText(C64Target(), true, text, writeAssembly = true) shouldNotBe null
}
test("array initialization with array literal") {
@@ -35,7 +35,7 @@ class TestVariables: FunSpec({
}
}
"""
compileText(C64Target(), true, text, writeAssembly = true).assertSuccess()
compileText(C64Target(), true, text, writeAssembly = true) shouldNotBe null
}
test("array initialization with array var assignment") {
@@ -48,6 +48,6 @@ class TestVariables: FunSpec({
ubyte[] values = [1,2,3]
}
"""
compileText(C64Target(), false, text, writeAssembly = true).assertSuccess()
compileText(C64Target(), false, text, writeAssembly = true) shouldNotBe null
}
})