more test fixes and more to do

This commit is contained in:
2019-08-10 21:59:31 +03:00
parent 213938075f
commit 0b59c95218
17 changed files with 58 additions and 47 deletions

View File

@ -9,10 +9,13 @@ module RubyX
super
code = "class Space ; def main(arg);return arg;end; end"
@comp = RubyXCompiler.new(load_parfait: true )
@linker = @comp.ruby_to_risc(code,:interpreter)
@collection = @comp.ruby_to_risc(code)
end
def test_to_risc
assert_equal Risc::Linker , @linker.class
assert_equal Risc::RiscCollection , @collection.class
end
def pest_linker
assert_equal Risc::Linker , @collection.translate(:interpreter).class
end
def pest_method
assert_equal :main , @linker.assemblers.first.callable.name