rubyx/test/risc/interpreter/assign/test_assign_thrice.rb
Torsten Ruger 393ac873c9 change return sequence to return messages to space
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
2018-08-06 14:07:17 +03:00

19 lines
303 B
Ruby

require_relative "../helper"
module Risc
class InterpreterAssignThrice < MiniTest::Test
include Ticker
def setup
@string_input = as_main("a = 5 ;a = 5 + a ;a = 5 + a ; return a")
super
end
def test_all
run_all
assert_equal 15 , get_return
end
end
end