1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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