Object dogfood, compiling parfiat to binary
Object is the first (obviously) Parfait object to parse and fully compile to binary. No tests yet, but almost 500 lines of real world code with 17 methods, not bad
This commit is contained in:
parent
ee8927b059
commit
4f3d117e40
@ -17,8 +17,16 @@ module RubyX
|
||||
assert_equal :Object , vool.name
|
||||
end
|
||||
def test_mom
|
||||
vool = compiler.ruby_to_mom source
|
||||
assert_equal Mom::MomCollection , vool.class
|
||||
mom = compiler.ruby_to_mom source
|
||||
assert_equal Mom::MomCollection , mom.class
|
||||
end
|
||||
def test_risc
|
||||
risc = compiler.ruby_to_risc source
|
||||
assert_equal Risc::RiscCollection , risc.class
|
||||
end
|
||||
def test_binary
|
||||
risc = compiler.ruby_to_binary source , :interpreter
|
||||
assert_equal Risc::Linker , risc.class
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user