a89301d623
basic still #23 , now applied Basic size of 20, interpreter gets 50 and the full set is 1024 Tests run more than twice as fast!!
19 lines
420 B
Ruby
19 lines
420 B
Ruby
require_relative 'helper'
|
|
|
|
module Mains
|
|
class TestNew < MiniTest::Test
|
|
include Risc::Ticker
|
|
|
|
def setup
|
|
@string_input = as_main("a = 37 ; while(a>0) ; a = a - 1 ; end ; return a")
|
|
super
|
|
end
|
|
def test_chain # max 1011 iterations on 1014 integers (1024 - 10 reserve)
|
|
run_all
|
|
assert_equal ::Integer , get_return.class , " "
|
|
assert_equal 0 , get_return , " "
|
|
end
|
|
|
|
end
|
|
end
|