recursive object test

This commit is contained in:
Torsten Ruger 2014-08-18 13:37:35 +03:00
parent 338c669a00
commit 67c3fb6cb0

View File

@ -81,9 +81,9 @@ class BasicSof < MiniTest::Test
check "-true\n-1\n-*1" check "-true\n-1\n-*1"
end end
def test_object_recursive def test_object_recursive
ar = [true, 1 ] object = ObjectWithAttributes.new
ar << ar object.extra = object
@out = Sof::Writer.write(ar) @out = Sof::Writer.write(object)
check "-true\n-1\n-*1" check "#{OBJECT_STRING}\n :extra *1"
end end
end end