fix the fix fix
This commit is contained in:
parent
caaa500cb7
commit
633c1e9a4a
@ -14,14 +14,14 @@ class Object
|
|||||||
end
|
end
|
||||||
HERE
|
HERE
|
||||||
@expect = [Label, LoadConstant ,SetSlot,Label,FunctionReturn]
|
@expect = [Label, LoadConstant ,SetSlot,Label,FunctionReturn]
|
||||||
check
|
check
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_return_local
|
def test_return_local
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
||||||
class Object
|
class Object
|
||||||
int main()
|
int main()
|
||||||
int runner = 5
|
int runner
|
||||||
return runner
|
return runner
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -44,20 +44,6 @@ HERE
|
|||||||
check
|
check
|
||||||
end
|
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
|
def pest_return_space_length # need to add runtime first
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
||||||
class Object
|
class Object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user