summaryrefslogtreecommitdiff
path: root/test/syck/test_null.rb
blob: b38bf50fbace8550562694c5d0978373ac49421f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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