393ac873c9
as it was before blocks (thought blocks would make reuse of messages impossible, but was wrong, this only appilies to lambdas) (too) many tests affected
18 lines
297 B
Ruby
18 lines
297 B
Ruby
require_relative "../helper"
|
|
|
|
module Risc
|
|
class InterpreterIfGreater < MiniTest::Test
|
|
include Ticker
|
|
|
|
def setup
|
|
@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
|