ruby/test/psych/test_null.rb

21 строка
304 B
Ruby

# frozen_string_literal: true
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