fix references (again)

quite tricky logic, but now outputting at lowest level, as intended
This commit is contained in:
Torsten Ruger
2015-06-15 09:07:16 +03:00
parent 4853f944ef
commit 224bd84b01
4 changed files with 24 additions and 11 deletions

View File

@ -1,12 +1,4 @@
class ObjectWithAttributes
def initialize
@name = "some name"
@number = 1234
end
attr_accessor :extra , :volotile
end
OBJECT_STRING = "ObjectWithAttributes(:name => 'some name', :number => 1234)"
Sof::Volotile.add(ObjectWithAttributes , [:volotile])
require_relative "helper"
class ObjectSof < MiniTest::Test
include Checker
@ -63,6 +55,6 @@ class ObjectSof < MiniTest::Test
object.extra = ObjectWithAttributes
ar = [object , ObjectWithAttributes]
@out = ar
check "-ObjectWithAttributes(:name => 'some name', :number => 1234, :extra => &1 ObjectWithAttributes)\n-*1"
check "-ObjectWithAttributes(:name => 'some name', :number => 1234, :extra => *1)\n-&1 ObjectWithAttributes"
end
end