mirror of
https://github.com/irmen/prog8.git
synced 2026-04-26 20:17:57 +00:00
simplified CompilationResult a bit
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user