fix the fix fix

This commit is contained in:
Torsten Ruger 2015-11-18 15:22:20 +02:00
parent caaa500cb7
commit 633c1e9a4a

View File

@ -14,14 +14,14 @@ class Object
end
HERE
@expect = [Label, LoadConstant ,SetSlot,Label,FunctionReturn]
check
check
end
def test_return_local
@string_input = <<HERE
class Object
int main()
int runner = 5
int runner
return runner
end
end
@ -44,20 +44,6 @@ HERE
check
end
def test_return_field
@string_input = <<HERE
class Object
field int runner
int main()
runner = 5
return self.runner
end
end
HERE
@expect = [Label, GetSlot,GetSlot ,SetSlot,Label,FunctionReturn]
check
end
def pest_return_space_length # need to add runtime first
@string_input = <<HERE
class Object