test_profile_frames.rb: assert first_lineno

* test/-ext-/debug/test_profile_frames.rb (test_profile_frames):
  assert first_lineno, only the top level of methods for the time
  being.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-10-14 19:14:20 +00:00
Родитель 1881251ecf
Коммит 5f7f1e5162
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -85,6 +85,11 @@ class TestProfileFrames < Test::Unit::TestCase
assert_equal(singleton_method_p[i], singleton_p, err_msg)
assert_equal(method_names[i], method_name, err_msg)
assert_equal(qualified_method_names[i], qualified_method_name, err_msg)
if label == method_name
c = classes[i]
m = singleton_p ? c.method(method_name) : c.instance_method(method_name)
assert_equal(m.source_location[1], first_lineno, err_msg)
end
}
end
end