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

ruby-changes:31022

From: nobu <ko1@a...>
Date: Tue, 1 Oct 2013 14:49:04 +0900 (JST)
Subject: [ruby-changes:31022] nobu:r43101 (trunk): test_regexp.rb, test_string.rb: suppress warnings

nobu	2013-10-01 14:48:57 +0900 (Tue, 01 Oct 2013)

  New Revision: 43101

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

  Log:
    test_regexp.rb, test_string.rb: suppress warnings
    
    * test/ruby/test_regexp.rb (test_eq_tilde_can_be_overridden): suppress
      a warning.
    * test/ruby/test_string.rb (test_eq_tilde_can_be_overridden): ditto.

  Modified files:
    trunk/test/ruby/test_regexp.rb
    trunk/test/ruby/test_string.rb
Index: test/ruby/test_regexp.rb
===================================================================
--- test/ruby/test_regexp.rb	(revision 43100)
+++ test/ruby/test_regexp.rb	(revision 43101)
@@ -1014,6 +1014,7 @@ class TestRegexp < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_regexp.rb#L1014
   def test_eq_tilde_can_be_overridden
     assert_in_out_err([], <<-RUBY, ["foo"], [])
       class Regexp
+        undef =~
         def =~(str)
           "foo"
         end
Index: test/ruby/test_string.rb
===================================================================
--- test/ruby/test_string.rb	(revision 43100)
+++ test/ruby/test_string.rb	(revision 43101)
@@ -2260,6 +2260,7 @@ class TestString < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L2260
   def test_eq_tilde_can_be_overridden
     assert_in_out_err([], <<-RUBY, ["foo"], [])
       class String
+        undef =~
         def =~(str)
           "foo"
         end

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

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