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