[前][次][番号順一覧][スレッド一覧]

ruby-changes:26613

From: zzak <ko1@a...>
Date: Mon, 31 Dec 2012 13:04:05 +0900 (JST)
Subject: [ruby-changes:26613] zzak:r38664 (trunk): * test/ruby/test_backtrace.rb: Add test for r37957 [Feature #7434]

zzak	2012-12-31 13:03:55 +0900 (Mon, 31 Dec 2012)

  New Revision: 38664

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38664

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

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_backtrace.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38663)
+++ ChangeLog	(revision 38664)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Dec 31 13:05:00 2012  Zachary Scott  <zachary@z...>
+
+	* test/ruby/test_backtrace.rb: Add test for r37957 [Feature #7434]
+
 Sun Dec 30 23:33:36 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (simple_re_meta): escaped closing parenthsis has different
Index: test/ruby/test_backtrace.rb
===================================================================
--- test/ruby/test_backtrace.rb	(revision 38663)
+++ test/ruby/test_backtrace.rb	(revision 38664)
@@ -92,6 +92,13 @@ class TestBacktrace < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_backtrace.rb#L92
     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|

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]