Sha256: 9b11ce7247829acf27b5ce60535f3407aeb681182b991ea027ca285064e30488
Contents?: true
Size: 409 Bytes
Versions: 15
Compression:
Stored size: 409 Bytes
Contents
require 'helper' module Syck class TestHash < Test::Unit::TestCase def setup @hash = { :a => 'b' } end def test_dump assert_equal @hash, Syck.load(Syck.dump(@hash)) end def test_ref_append hash = Syck.load(<<-eoyml) --- foo: &foo hello: world bar: <<: *foo eoyml assert_equal({"foo"=>{"hello"=>"world"}, "bar"=>{"hello"=>"world"}}, hash) end end end
Version data entries
15 entries across 15 versions & 2 rubygems