summaryrefslogtreecommitdiff
path: root/test/visitors/test_yast_builder.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-30 09:43:11 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-30 09:43:11 -0700
commit59e343cfc97458a38e9a9da5b0e9ba102fed0dd6 (patch)
treedb83f6b105994eee867bb8831781703da4afcaaa /test/visitors/test_yast_builder.rb
parent1fb4171aae09eeed11f00dcc3b2ddd8a609394be (diff)
downloadpsych-59e343cfc97458a38e9a9da5b0e9ba102fed0dd6.zip
returning nil on empty string
Diffstat (limited to 'test/visitors/test_yast_builder.rb')
-rw-r--r--test/visitors/test_yast_builder.rb1
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'