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.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/yaml/test_null.rb b/test/yaml/test_null.rb
new file mode 100644
index 0000000..24c8ab1
--- /dev/null
+++ b/test/yaml/test_null.rb
@@ -0,0 +1,19 @@
+require 'helper'
+
+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