repo.or.cz
/
ruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git]
/
test
/
psych
/
test_null.rb
blob
9d92d74150d3952688f88a7c4868bddc7d1d6c05
1
# frozen_string_literal: true
2
require_relative 'helper'
3
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
14
-
15
- Null
16
- NULL
17
eoyml
18
end
19
end
20
end