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

ruby-changes:49370

From: nobu <ko1@a...>
Date: Tue, 26 Dec 2017 19:40:54 +0900 (JST)
Subject: [ruby-changes:49370] nobu:r61485 (trunk): test_proc.rb: remove duplicate test_source_location

nobu	2017-12-26 19:40:48 +0900 (Tue, 26 Dec 2017)

  New Revision: 61485

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61485

  Log:
    test_proc.rb: remove duplicate test_source_location

  Modified files:
    trunk/test/ruby/test_proc.rb
Index: test/ruby/test_proc.rb
===================================================================
--- test/ruby/test_proc.rb	(revision 61484)
+++ test/ruby/test_proc.rb	(revision 61485)
@@ -406,12 +406,6 @@ class TestProc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_proc.rb#L406
     assert_equal(@@line_of_source_location_test, lineno, 'Bug #2427')
   end
 
-  def test_source_location
-    file, lineno = method(:source_location_test).source_location
-    assert_match(/^#{ Regexp.quote(__FILE__) }$/, file)
-    assert_equal(@@line_of_source_location_test, lineno, 'Bug #2427')
-  end
-
   def test_proc_lambda
     assert_raise(ArgumentError) { proc }
     assert_raise(ArgumentError) { lambda }

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

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