rubyx/test/risc/interpreter/conditional/test_if_smaller.rb

19 lines
327 B
Ruby
Raw Normal View History

require_relative "../helper"
module Risc
2018-04-24 18:46:22 +02:00
class InterpreterIfSmaller < MiniTest::Test
include Ticker
def setup
@preload = "Integer.lt"
@string_input = as_main 'if( 5 < 5 ); return 1;else;return 2;end'
super
end
def test_if
run_all
assert_equal 2 , get_return
end
end
end