remove all that label stuff
left over after rewrite from blocks to linked list
This commit is contained in:
@ -61,20 +61,6 @@ module Risc
|
||||
assert_equal @label, @instruction.next
|
||||
assert_equal 2 , @instruction.length , @instruction.to_arr
|
||||
end
|
||||
def test_each_label1
|
||||
@instruction.set_next @label
|
||||
start = Label.new("test" , "test" , @instruction)
|
||||
count = 0
|
||||
start.each_label { |l| count += 1 }
|
||||
assert_equal 2 , count
|
||||
end
|
||||
def test_each_label2
|
||||
@instruction.set_next @branch
|
||||
start = Label.new("test" , "test" , @instruction)
|
||||
count = 0
|
||||
start.each_label { |l| count += 1 }
|
||||
assert_equal 2 , count
|
||||
end
|
||||
def test_label_is_method
|
||||
label = Label.new("test" , "Object.test")
|
||||
assert label.is_method
|
||||
|
Reference in New Issue
Block a user