more and better tests
especially vool
This commit is contained in:
@ -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)
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user