fix all tests accordingly to new return

This commit is contained in:
Torsten Ruger
2018-08-02 17:37:27 +03:00
parent 5346077a72
commit 308996bf8e
37 changed files with 161 additions and 155 deletions

View File

@ -22,10 +22,10 @@ module Risc
SlotToReg, SlotToReg, RegToSlot, SlotToReg, SlotToReg,
Branch, RegToSlot, SlotToReg, SlotToReg, SlotToReg,
FunctionReturn, SlotToReg, SlotToReg, RegToSlot, SlotToReg,
SlotToReg, RegToSlot, SlotToReg, SlotToReg, RegToSlot,
Branch, SlotToReg, SlotToReg, SlotToReg, FunctionReturn,
Transfer, SlotToReg, SlotToReg, Branch, Syscall,
NilClass]
SlotToReg, RegToSlot, Branch, SlotToReg, SlotToReg,
Branch, RegToSlot, SlotToReg, SlotToReg, SlotToReg,
FunctionReturn, Transfer, SlotToReg, SlotToReg, Branch,
Syscall, NilClass]
assert_equal "K".ord , get_return
end
def test_reg_to_byte
@ -34,7 +34,7 @@ module Risc
assert_equal "K".ord , @interpreter.get_register(done.register)
end
def test_exit
done = main_ticks(70)
done = main_ticks(71)
assert_equal Syscall , done.class
end