summaryrefslogtreecommitdiff
path: root/test/psych/test_null.rb
blob: ca78aa9214a4eb61552e9227aa51f1225a865c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'test/psych/helper'

module Psych
  ###
  # Test null from YAML spec:
  # http://yaml.org/type/null.html
  class TestNull < TestCase
    def test_null_list
      assert_equal [nil] * 5, Psych.load(<<-eoyml)
---
- ~
- null
- 
- Null
- NULL
      eoyml
    end
  end
end