diff options
Diffstat (limited to 'test/syck/test_null.rb')
-rw-r--r-- | test/syck/test_null.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/syck/test_null.rb b/test/syck/test_null.rb new file mode 100644 index 0000000000..b38bf50fba --- /dev/null +++ b/test/syck/test_null.rb @@ -0,0 +1,20 @@ +require 'test/unit' +require 'yaml' + +module Syck + ### + # Test null from YAML spec: + # http://yaml.org/type/null.html + class TestNull < Test::Unit::TestCase + def test_null_list + assert_equal [nil] * 5, YAML.load(<<-eoyml) +--- +- ~ +- null +- +- Null +- NULL + eoyml + end + end +end |