fixes references

only writes references out once (was broken)
and only the first occurrence in write order
This commit is contained in:
Torsten Ruger
2015-06-14 22:55:41 +03:00
parent 5ca9eed89c
commit 941f0a4886
4 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,4 @@
require_relative "test_basic"
require_relative "test_object"
require_relative "test_ext"
require_relative "test_refs"

View File

@ -57,6 +57,6 @@ class ObjectSof < MiniTest::Test
object.extra = ObjectWithAttributes
ar = [object , ObjectWithAttributes]
@out = ar
check "-ObjectWithAttributes(:name => 'some name', :number => 1234, :extra => *1)\n-&1 ObjectWithAttributes"
check "-ObjectWithAttributes(:name => 'some name', :number => 1234, :extra => &1 ObjectWithAttributes)\n-*1"
end
end