fix the fix fix
This commit is contained in:
parent
caaa500cb7
commit
633c1e9a4a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user