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

ruby-changes:20145

From: tenderlove <ko1@a...>
Date: Wed, 22 Jun 2011 03:10:00 +0900 (JST)
Subject: [ruby-changes:20145] tenderlove:r32193 (trunk): fix ambiguous argument warnings in test/psych/test_nil.rb

tenderlove	2011-06-22 03:04:41 +0900 (Wed, 22 Jun 2011)

  New Revision: 32193

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

  Log:
    fix ambiguous argument warnings in test/psych/test_nil.rb

  Modified files:
    trunk/test/psych/test_nil.rb

Index: test/psych/test_nil.rb
===================================================================
--- test/psych/test_nil.rb	(revision 32192)
+++ test/psych/test_nil.rb	(revision 32193)
@@ -4,8 +4,8 @@
   class TestNil < TestCase
     def test_nil
       yml = Psych.dump nil
-      assert_match /--- \n(?:\.\.\.\n)?/, yml
-      assert_equal nil, Psych.load(yml)
+      assert_match(/--- \n(?:\.\.\.\n)?/, yml)
+      assert_nil Psych.load(yml)
     end
 
     def test_array_nil

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

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