fixing most of the risc tests

This commit is contained in:
2019-08-23 15:31:22 +03:00
parent 50c172915e
commit 4ca16e5f9a
21 changed files with 265 additions and 293 deletions

View File

@ -58,11 +58,6 @@ module Risc
assert_equal :next_message , message.index
assert_equal @r0 , message.register
end
def test_return
ret = @r0.function_return
assert_equal FunctionReturn , ret.class
assert_equal @r0 , ret.register
end
def test_operator
ret = @r0.op :<< , @r1
assert_equal OperatorInstruction , ret.class