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

ruby-changes:31474

From: naruse <ko1@a...>
Date: Wed, 6 Nov 2013 15:25:21 +0900 (JST)
Subject: [ruby-changes:31474] naruse:r43553 (trunk): Suppress warnings: ambiguous first argument; put parentheses or even spaces

naruse	2013-11-06 15:25:18 +0900 (Wed, 06 Nov 2013)

  New Revision: 43553

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

  Log:
    Suppress warnings: ambiguous first argument; put parentheses or even spaces

  Modified files:
    trunk/test/ostruct/test_ostruct.rb
Index: test/ostruct/test_ostruct.rb
===================================================================
--- test/ostruct/test_ostruct.rb	(revision 43552)
+++ test/ostruct/test_ostruct.rb	(revision 43553)
@@ -131,8 +131,8 @@ class TC_OpenStruct < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ostruct/test_ostruct.rb#L131
     e = assert_raise(NoMethodError) { os.foo true }
     assert_equal :foo, e.name
     assert_equal [true], e.args
-    assert_match /#{__callee__}/, e.backtrace[0]
+    assert_match(/#{__callee__}/, e.backtrace[0])
     e = assert_raise(ArgumentError) { os.send :foo=, true, true }
-    assert_match /#{__callee__}/, e.backtrace[0]
+    assert_match(/#{__callee__}/, e.backtrace[0])
   end
 end

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

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