fixed some disabled tests

This commit is contained in:
Torsten Ruger 2018-08-17 22:43:17 +03:00
parent 176b12d896
commit 233b83510f
2 changed files with 6 additions and 6 deletions

View File

@ -46,16 +46,16 @@ module Risc
assert_transfer(sl, :r0 ,:r4)
assert_equal 11 , @interpreter.get_register(:r4)
end
def pest_restore_message
def test_restore_message
sl = main_ticks(23)
assert_transfer(sl, :r8 ,:r0)
assert_equal Parfait::Message , @interpreter.get_register(:r0).class
end
def pest_save_sys_return
def test_save_sys_return
sl = main_ticks(28)
assert_reg_to_slot( sl , :r3 ,:r2 , 2)
assert_reg_to_slot( sl , :r4 ,:r3 , 2)
end
def pest_return
def test_return
done = main_ticks(60)
assert_equal FunctionReturn , done.class
end

View File

@ -21,7 +21,7 @@ HERE
assert_equal 1 , get_return
end
def est_fibo
def test_fibo
run_space <<HERE
def fibo_r( n )
if( n < 2 )
@ -34,7 +34,7 @@ HERE
end
def main(arg)
return fibo_r(8)
return fibo_r(6)
end
HERE
assert_equal 8 , get_return