use common list for risc instruction
strange that that was not done before as the code was clearly copied when extracting it Fix bug for insertion
This commit is contained in:
@ -36,6 +36,11 @@ module Risc
|
||||
@instruction.insert @branch
|
||||
assert_equal @branch, @instruction.last
|
||||
end
|
||||
def test_insert_two
|
||||
@branch << @label
|
||||
@instruction.insert @branch
|
||||
assert_equal @label , @instruction.last
|
||||
end
|
||||
def test_append_not_empty
|
||||
@instruction.append @branch
|
||||
@instruction.append @label
|
||||
|
Reference in New Issue
Block a user