Builtin is no more, final conversions done
All preloading where it needs to be (some)tests for the preload split compiler test remembered binary tests (usually just run on travis)
This commit is contained in:
@ -6,7 +6,7 @@ module Vool
|
||||
|
||||
def setup
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@code = Macro.boot_methods({})
|
||||
@code = Builtin.boot_methods({})
|
||||
end
|
||||
def as_ruby
|
||||
@ruby = Ruby::RubyCompiler.compile(@code)
|
||||
|
@ -7,6 +7,9 @@ module Mom
|
||||
@a = arg
|
||||
@b = b
|
||||
end
|
||||
def to_risc(compiler)
|
||||
Risc.label("some" , "thing")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -30,6 +33,10 @@ module Vool
|
||||
assert_equal Vool::IntegerConstant , @ins.b.class
|
||||
assert_equal 1 , @ins.b.value
|
||||
end
|
||||
def test_to_risc
|
||||
comp = @compiler.to_risc
|
||||
assert_equal Risc::MethodCompiler , comp.class
|
||||
assert_equal :main , comp.callable.name
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user