summaryrefslogtreecommitdiffstats
path: root/test/yaml/test_null.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-30 05:12:48 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-30 05:12:48 +0000
commit23bacaee075eca6043eb36d3adc92c800d9a95aa (patch)
tree1f18b0a3f247d7181078c6f75fe3bd4659167e46 /test/yaml/test_null.rb
parentc0839de0841d5ddad6a5961a83f7d1d80c036c3a (diff)
downloadruby-23bacaee075eca6043eb36d3adc92c800d9a95aa.tar.gz
ruby-23bacaee075eca6043eb36d3adc92c800d9a95aa.tar.xz
ruby-23bacaee075eca6043eb36d3adc92c800d9a95aa.zip
Adding tests for YAML types
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 000000000..e6b29550e
--- /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