rubyx/test/mains/test_new.rb
2018-08-08 12:03:17 +03:00

18 lines
343 B
Ruby

require_relative 'helper'
module Mains
class TestNew < MiniTest::Test
include Risc::Ticker
def setup
@string_input = as_main("a = 98 ; while(a>0) ; a = a - 1 ; end ; return a")
super
end
def test_chain # max 98 iterations on 300 integers
run_all
assert_equal 0 , get_return , " "
end
end
end