rubyx/test/risc/interpreter/assign/test_assign_thrice.rb

19 lines
303 B
Ruby
Raw Normal View History

2018-04-23 12:16:46 +02:00
require_relative "../helper"
2018-04-20 12:13:09 +02:00
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
2018-04-20 12:13:09 +02:00
end
end
end