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

ruby-changes:33624

From: naruse <ko1@a...>
Date: Thu, 24 Apr 2014 17:47:33 +0900 (JST)
Subject: [ruby-changes:33624] naruse:r45705 (trunk): suppress warnings: ambiguous first argument; put parentheses or even spaces

naruse	2014-04-24 17:47:29 +0900 (Thu, 24 Apr 2014)

  New Revision: 45705

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

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

  Modified files:
    trunk/test/ruby/test_file.rb
Index: test/ruby/test_file.rb
===================================================================
--- test/ruby/test_file.rb	(revision 45704)
+++ test/ruby/test_file.rb	(revision 45705)
@@ -401,10 +401,10 @@ class TestFile < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file.rb#L401
       rescue NotImplementedError
       end
       s = st.inspect
-      assert_match /\A\#<File::Statfs\b.*>\z/, s
-      assert_match /\bbsize=\d+\b/, s
-      assert_match /\bblocks=(?:\d+[,>\/])+\b/, s
-      assert_match /\bfiles=(?:\d+[,>\/])+\b/, s
+      assert_match(/\A\#<File::Statfs\b.*>\z/, s)
+      assert_match(/\bbsize=\d+\b/, s)
+      assert_match(/\bblocks=(?:\d+[,>\/])+\b/, s)
+      assert_match(/\bfiles=(?:\d+[,>\/])+\b/, s)
     end
   end
 end

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

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