remove all that label stuff

left over after rewrite from blocks to linked list
This commit is contained in:
Torsten Ruger
2018-03-26 14:54:41 +03:00
parent 1e21177b35
commit b24b65520d
6 changed files with 22 additions and 109 deletions

View File

@ -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