Sha256: 89c21788a489f3dd092d1c5d099839b50d30fe38ba547dcd3d49702a1b7c561f

Contents?: true

Size: 396 Bytes

Versions: 15

Compression:

Stored size: 396 Bytes

Contents

require 'helper'

module Syck
  class TestSymbol < Test::Unit::TestCase
    def test_to_yaml
      assert_equal :a, Syck.load(:a.to_yaml)
    end

    def test_dump
      assert_equal :a, Syck.load(Syck.dump(:a))
    end

    def test_stringy
      assert_equal :"1", Syck.load(Syck.dump(:"1"))
    end

    def test_load_quoted
      assert_equal :"1", Syck.load("--- :'1'\n")
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

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