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
307 B
Ruby
18 lines
307 B
Ruby
require_relative "../helper"
|
|
|
|
module Risc
|
|
class InterpreterWhileCount < MiniTest::Test
|
|
include Ticker
|
|
|
|
def setup
|
|
@string_input = as_main 'a = -1; while( 0 > a); a = 1 + a;end;return a'
|
|
super
|
|
end
|
|
|
|
def test_while
|
|
run_all
|
|
assert_equal 0 , get_return
|
|
end
|
|
end
|
|
end
|