update gems and fix tests

This commit is contained in:
Torsten Ruger
2016-12-06 12:08:18 +02:00
parent 4b05b48197
commit 5ac14ddccc
17 changed files with 52 additions and 79 deletions

View File

@ -42,12 +42,12 @@ module Register
assert_equal @label, @instruction.last
end
def test_next1
assert_equal nil , @instruction.next
assert_nil @instruction.next
end
def test_next2
@instruction.set_next @label
assert_equal @label , @instruction.next
assert_equal nil , @instruction.next(2)
assert_nil @instruction.next(2)
end
def test_replace
@instruction.append @branch