diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-30 09:43:11 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-30 09:43:11 -0700 |
commit | 59e343cfc97458a38e9a9da5b0e9ba102fed0dd6 (patch) | |
tree | db83f6b105994eee867bb8831781703da4afcaaa /test | |
parent | 1fb4171aae09eeed11f00dcc3b2ddd8a609394be (diff) | |
download | psych-59e343cfc97458a38e9a9da5b0e9ba102fed0dd6.zip |
returning nil on empty string
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_yast_builder.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/visitors/test_yast_builder.rb b/test/visitors/test_yast_builder.rb index aa6f332..67d54be 100644 --- a/test/visitors/test_yast_builder.rb +++ b/test/visitors/test_yast_builder.rb @@ -45,6 +45,7 @@ module Psych assert_equal nil, Psych.load('Null') assert_equal nil, Psych.load('NULL') assert_equal nil, Psych.load('~') + assert_equal({'foo' => nil}, Psych.load('foo: ')) assert_round_trip 'null' assert_round_trip 'nUll' |