method marking for labels

This commit is contained in:
Torsten Ruger
2015-11-03 16:22:24 +02:00
parent 6882f39645
commit ca1dc36e3d
2 changed files with 17 additions and 0 deletions

View File

@ -70,5 +70,12 @@ module Register
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
end
def test_label_is_not_method
assert ! @label.is_method
end
end
end