fix old tests again

This commit is contained in:
Torsten Ruger
2015-05-24 16:55:03 +03:00
parent 29a34b4d24
commit 95ac024421
7 changed files with 23 additions and 11 deletions

View File

@ -68,7 +68,7 @@ module Parfait
end
def instance_variable_defined name
layout().index_of(name)
get_layout().index_of(name)
end
# Object

View File

@ -109,7 +109,7 @@ module Parfait
# as we answered is_value? with true, sof will create a basic node with this string
def to_sof
"\"#{to_s}\""
"'" + to_s + "'"
end
#below here is OLD, DUBIOUS and needs to be checked TODO

View File

@ -1,4 +1,5 @@
require_relative "object"
require_relative "positioned"
module Virtual
@ -9,7 +10,8 @@ module Virtual
# It is actually the point of the virtual machine layer to express oo functionality in the set of
# instructions, thus defining a minimal set of instructions needed to implement oo.
class Instruction < Virtual::Object
class Instruction
include Positioned
# simple thought: don't recurse for Blocks, just check their names
def == other