more and better tests

especially vool
This commit is contained in:
2019-08-08 12:18:36 +03:00
parent d5625a70d7
commit 82c9f1d97f
10 changed files with 109 additions and 53 deletions

View File

@ -5,10 +5,6 @@ module RubyX
module RubyXHelper
def setup
end
def ruby_to_risc(input , options = {})
mom = ruby_to_mom(input , options)
mom.translate(options[:platform] || :interpreter)
end
def ruby_to_vool(input, options = {})
options = RubyX.default_test_options.merge(options)
RubyXCompiler.new(options).ruby_to_vool(input)

View File

@ -8,9 +8,10 @@ module RubyX
def setup
super
code = "class Space ; def main(arg);return arg;end; end"
@linker = ruby_to_risc(code)
@comp = RubyXCompiler.new(load_parfait: true )
@linker = @comp.ruby_to_risc(code,:interpreter)
end
def pest_to_risc
def test_to_risc
assert_equal Risc::Linker , @linker.class
end
def pest_method