mirror of
https://github.com/irmen/prog8.git
synced 2025-01-26 03:32:22 +00:00
new compileText result
This commit is contained in:
parent
dc93691fd9
commit
775d136b91
@ -6,7 +6,6 @@ import io.kotest.matchers.ints.shouldBeGreaterThan
|
|||||||
import io.kotest.matchers.shouldBe
|
import io.kotest.matchers.shouldBe
|
||||||
import prog8.codegen.experimental6502.IntermediateAstMaker
|
import prog8.codegen.experimental6502.IntermediateAstMaker
|
||||||
import prog8.codegen.target.C64Target
|
import prog8.codegen.target.C64Target
|
||||||
import prog8tests.helpers.assertSuccess
|
|
||||||
import prog8tests.helpers.compileText
|
import prog8tests.helpers.compileText
|
||||||
|
|
||||||
class TestIntermediateAst: FunSpec({
|
class TestIntermediateAst: FunSpec({
|
||||||
@ -24,7 +23,7 @@ class TestIntermediateAst: FunSpec({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
val result = compileText(C64Target(), false, text, writeAssembly = false).assertSuccess()
|
val result = compileText(C64Target(), false, text, writeAssembly = false)!!
|
||||||
val ast = IntermediateAstMaker.transform(result.program)
|
val ast = IntermediateAstMaker.transform(result.program)
|
||||||
ast.name shouldBe result.program.name
|
ast.name shouldBe result.program.name
|
||||||
ast.builtinFunctions.names shouldBe result.program.builtinFunctions.names
|
ast.builtinFunctions.names shouldBe result.program.builtinFunctions.names
|
||||||
|
Loading…
x
Reference in New Issue
Block a user