[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / test / psych / test_null.rb
blob9d92d74150d3952688f88a7c4868bddc7d1d6c05
1 # frozen_string_literal: true
2 require_relative 'helper'
4 module Psych
5   ###
6   # Test null from YAML spec:
7   # http://yaml.org/type/null.html
8   class TestNull < TestCase
9     def test_null_list
10       assert_equal [nil] * 5, Psych.load(<<-eoyml)
11 ---
12 - ~
13 - null
15 - Null
16 - NULL
17       eoyml
18     end
19   end
20 end