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