1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-06-20 01:00:43 +00:00
parent ee80993690
commit 2190c95381

View file

@ -4,7 +4,7 @@ module Psych
class TestNil < TestCase class TestNil < TestCase
def test_nil def test_nil
yml = Psych.dump nil yml = Psych.dump nil
assert_equal "--- \n...\n", yml assert_match /--- \n(?:\.\.\.\n)?/, yml
assert_equal nil, Psych.load(yml) assert_equal nil, Psych.load(yml)
end end