adding the actual references for referenced objects

This commit is contained in:
Torsten Ruger
2014-08-18 13:53:05 +03:00
parent 67c3fb6cb0
commit 1dee9a4bd1
8 changed files with 40 additions and 25 deletions

View File

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