Torsten Rüger
12b29285d7
so many relied (implicitly( on some builtin function after all can't do much in ruby without calling Now all those dependencies are explicit Small risc changes come because the macro version has a return label and unreachable label
19 lines
330 B
Ruby
19 lines
330 B
Ruby
require_relative "../helper"
|
|
|
|
module Risc
|
|
class InterpreterIfSmallerOr < MiniTest::Test
|
|
include Ticker
|
|
|
|
def setup
|
|
@preload = "Integer.le"
|
|
@string_input = as_main 'if( 5 <= 5 ); return 1;else;return 2;end'
|
|
super
|
|
end
|
|
|
|
def test_if
|
|
run_all
|
|
assert_equal 1 , get_return
|
|
end
|
|
end
|
|
end
|