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:
parent
ee80993690
commit
2190c95381
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue