recursive object test
This commit is contained in:
parent
338c669a00
commit
67c3fb6cb0
@ -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
|
Loading…
Reference in New Issue
Block a user