Sha256: a9520086436efeb8ff88b925fea341f1bf893b45686c8713f6445efc6b940cd2

Contents?: true

Size: 287 Bytes

Versions: 6

Compression:

Stored size: 287 Bytes

Contents

require 'psych/helper'

module Psych
  class TestArray < TestCase
    def setup
      super
      @list = [{ :a => 'b' }, 'foo']
    end

    def test_self_referential
      @list << @list
      assert_cycle(@list)
    end

    def test_cycle
      assert_cycle(@list)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
psych-1.2.2 test/psych/test_array.rb
psych-1.2.2.rc1 test/psych/test_array.rb
psych-1.2.1 test/psych/test_array.rb
psych-1.2.0 test/psych/test_array.rb
psych-1.1.1 test/psych/test_array.rb
psych-1.1.0 test/psych/test_array.rb