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

ruby-changes:20126

From: naruse <ko1@a...>
Date: Mon, 20 Jun 2011 10:00:59 +0900 (JST)
Subject: [ruby-changes:20126] naruse:r32173 (trunk): Allow "--- \n" as a yaml dumped result for nil.

naruse	2011-06-20 10:00:43 +0900 (Mon, 20 Jun 2011)

  New Revision: 32173

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

  Log:
    Allow "--- \n" as a yaml dumped result for nil.

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

Index: test/psych/test_nil.rb
===================================================================
--- test/psych/test_nil.rb	(revision 32172)
+++ test/psych/test_nil.rb	(revision 32173)
@@ -4,7 +4,7 @@
   class TestNil < TestCase
     def test_nil
       yml = Psych.dump nil
-      assert_equal "--- \n...\n", yml
+      assert_match /--- \n(?:\.\.\.\n)?/, yml
       assert_equal nil, Psych.load(yml)
     end
 

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

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