fix while tests

This commit is contained in:
Torsten Ruger
2018-04-20 10:27:06 +03:00
parent bf6e0853ce
commit 98f3898acd
3 changed files with 79 additions and 1 deletions

View File

@ -17,6 +17,14 @@ module Risc
run_all "5 - 15"
assert_equal -10 , get_return.value
end
def test_rshift
run_all "#{2**8} >> 3"
assert_equal 2**5 , get_return.value
end
def test_lshift
run_all "#{2**8} << 3"
assert_equal 2**11 , get_return.value
end
def test_div10
run_all "45.div10"
assert_equal 4 , get_return.value