summaryrefslogtreecommitdiff
path: root/test/yaml/test_null.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/yaml/test_null.rb')
-rw-r--r--test/yaml/test_null.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/yaml/test_null.rb b/test/yaml/test_null.rb
new file mode 100644
index 0000000000..e6b29550e4
--- /dev/null
+++ b/test/yaml/test_null.rb
@@ -0,0 +1,20 @@
+require 'test/unit'
+require 'yaml'
+
+module YAML
+ ###
+ # 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