1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_backtrace.rb: Add test for r37957 [Feature #7434]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2012-12-31 04:03:55 +00:00
parent 77df5bb1b5
commit e4be7f9772
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Mon Dec 31 13:05:00 2012 Zachary Scott <zachary@zacharyscott.net>
* test/ruby/test_backtrace.rb: Add test for r37957 [Feature #7434]
Sun Dec 30 23:33:36 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (simple_re_meta): escaped closing parenthsis has different

View file

@ -92,6 +92,13 @@ class TestBacktrace < Test::Unit::TestCase
assert_equal(cs, locs)
end
def test_caller_locations_with_range
cs = caller(0,2); locs = caller_locations(0..1).map { |loc|
loc.to_s
}
assert_equal(cs, locs)
end
def test_caller_locations_to_s_inspect
cs = caller(0); locs = caller_locations(0)
cs.zip(locs){|str, loc|