diff --git a/test/virtual/virtual_helper.rb b/test/virtual/virtual_helper.rb index 8da99ad4..486ed682 100644 --- a/test/virtual/virtual_helper.rb +++ b/test/virtual/virtual_helper.rb @@ -2,6 +2,12 @@ require_relative '../helper' require 'parslet/convenience' require "yaml" +Parfait::Object.class_eval do + def secret_layout_hammer + internal_object_set(Parfait::Object::LAYOUT_INDEX , nil) + end +end + module VirtualHelper # need a code generator, for arm def setup @@ -15,6 +21,8 @@ module VirtualHelper # stops the whole objectspace beeing tested # with the class comes superclass and all methods expressions.first.instance_variable_set :@for_class , nil + expressions.first.secret_layout_hammer + expressions.first.code.secret_layout_hammer end if( expressions.first.is_a? Virtual::Self ) # stops the whole objectspace beeing tested @@ -22,7 +30,7 @@ module VirtualHelper expressions.first.type.instance_variable_set :@of_class , nil end is = Sof.write(expressions) - #puts is + puts is is.gsub!("\n" , "*^*") assert_equal @output , is end