summaryrefslogtreecommitdiff
path: root/test/ruby/test_backtrace.rb
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_backtrace.rb29
1 files changed, 29 insertions, 0 deletions
@@ -154,6 +154,35 @@ class TestBacktrace < Test::Unit::TestCase
assert_equal caller(0), caller(0, nil)
end
def test_caller_locations_first_label
def self.label
caller_locations.first.label