diff options
author | Takashi Kokubun <[email protected]> | 2023-09-07 10:57:52 -0700 |
---|---|---|
committer | <[email protected]> | 2023-09-07 10:57:52 -0700 |
commit | 5b5ae3d9e064e17e2a7d8d21d739fcc62ae1075c () | |
tree | fde0e41fdd741cac9434969fa2d2a2df0d90e7e5 /test/ruby/test_backtrace.rb | |
parent | 4efcaf956e27df365a1cf9e0cbb8d9a68eeb6995 (diff) |
Rewrite Integer#times in Ruby (#8388)
Notes: Merged-By: k0kubun <[email protected]>
-rw-r--r-- | test/ruby/test_backtrace.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -215,15 +215,15 @@ class TestBacktrace < Test::Unit::TestCase @res = caller_locations(2, 1).inspect end @line = __LINE__ + 1 - 1.times.map { 1.times.map { foo } } - assert_equal("[\"#{__FILE__}:#{@line}:in `times'\"]", @res) end def test_caller_location_path_cfunc_iseq_no_pc def self.foo @res = caller_locations(2, 1)[0].path end - 1.times.map { 1.times.map { foo } } assert_equal(__FILE__, @res) end |