Fix if logic error
ifs may have an empty true block Especially for unlesses thet is normal, so allow
This commit is contained in:
@ -6,17 +6,19 @@ module RubyX
|
||||
def setup
|
||||
end
|
||||
def ruby_to_risc(input , options = {})
|
||||
mom = ruby_to_mom(input)
|
||||
mom = ruby_to_mom(input , options)
|
||||
mom.translate(options[:platform] || :interpreter)
|
||||
end
|
||||
def ruby_to_vool(input, options = {})
|
||||
RubyXCompiler.new(RubyX.default_test_options).ruby_to_vool(input)
|
||||
options = RubyX.default_test_options.merge(options)
|
||||
RubyXCompiler.new(options).ruby_to_vool(input)
|
||||
end
|
||||
def ruby_to_mom(input , options = {})
|
||||
RubyXCompiler.new(RubyX.default_test_options).ruby_to_mom(input)
|
||||
options = RubyX.default_test_options.merge(options)
|
||||
RubyXCompiler.new(options).ruby_to_mom(input)
|
||||
end
|
||||
def compile_in_test( input , options = {})
|
||||
vool = ruby_to_vool in_Test(input)
|
||||
vool = ruby_to_vool(in_Test(input) , options)
|
||||
vool.to_mom(nil)
|
||||
itest = Parfait.object_space.get_class_by_name(:Test)
|
||||
assert itest
|
||||
|
Reference in New Issue
Block a user