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

Version Path
syck-1.5.1.1 test/test_hash.rb
syck-1.5.1 test/test_hash.rb
syck-1.5.0 test/test_hash.rb
syck-1.4.1 test/test_hash.rb
syck-1.4.0 test/test_hash.rb
syck-1.3.0 test/test_hash.rb
syck-1.2.0 test/test_hash.rb
syck-1.1.0 test/test_hash.rb
syck-1.0.5 test/test_hash.rb
syck-1.0.4 test/test_hash.rb
syck-1.0.3 test/test_hash.rb
syck-1.0.1 test/test_hash.rb
syck-1.0.0.4 test/test_hash.rb
concordia-publishing-house-syck-1.0.0.4 test/test_hash.rb
syck-1.0.0 test/test_hash.rb