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_transfer(sl, :r0 ,:r4)
assert_equal 11 , @interpreter.get_register(:r4) assert_equal 11 , @interpreter.get_register(:r4)
end end
def pest_restore_message def test_restore_message
sl = main_ticks(23) sl = main_ticks(23)
assert_transfer(sl, :r8 ,:r0) assert_transfer(sl, :r8 ,:r0)
assert_equal Parfait::Message , @interpreter.get_register(:r0).class assert_equal Parfait::Message , @interpreter.get_register(:r0).class
end end
def pest_save_sys_return def test_save_sys_return
sl = main_ticks(28) sl = main_ticks(28)
assert_reg_to_slot( sl , :r3 ,:r2 , 2) assert_reg_to_slot( sl , :r4 ,:r3 , 2)
end end
def pest_return def test_return
done = main_ticks(60) done = main_ticks(60)
assert_equal FunctionReturn , done.class assert_equal FunctionReturn , done.class
end end

View File

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