Sha256: cd65acf244a65e4ddca66894d1688bea4eb1a11c40040819f60eb229f375b9f6
Contents?: true
Size: 346 Bytes
Versions: 8
Compression:
Stored size: 346 Bytes
Contents
require 'psych/helper' module Psych class TestNil < TestCase def test_nil yml = Psych.dump nil assert_match(/--- \n(?:\.\.\.\n)?/, yml) assert_nil Psych.load(yml) end def test_array_nil yml = Psych.dump [nil] assert_equal "---\n- \n", yml assert_equal [nil], Psych.load(yml) end end end
Version data entries
8 entries across 8 versions & 1 rubygems