Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
da61f334
Commit
da61f334
authored
Mar 25, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended error test cases
parent
2b948d06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
3 deletions
+95
-3
tests/bugs/return_outside_function_T135.pyx
tests/bugs/return_outside_function_T135.pyx
+29
-3
tests/errors/break_outside_loop.pyx
tests/errors/break_outside_loop.pyx
+33
-0
tests/errors/continue_outside_loop.pyx
tests/errors/continue_outside_loop.pyx
+33
-0
No files found.
tests/bugs/return_outside_function_T135.pyx
View file @
da61f334
return
'bar'
class
A
:
return
None
cdef
class
B
:
return
None
try
:
return
None
except
:
pass
try
:
return
None
finally
:
pass
for
i
in
(
1
,
2
):
return
None
while
True
:
return
None
if
True
:
return
None
else
:
return
None
_ERRORS
=
u'''
1:0: Return not inside a function body
3:4: Return not inside a function body
6:4: Return not inside a function body
2:0: Return not inside a function body
5:4: Return not inside a function body
8:4: Return not inside a function body
10:5: Return not inside a function body
13:5: Return not inside a function body
17:4: Return not inside a function body
20:4: Return not inside a function body
23:4: Return not inside a function body
25:4: Return not inside a function body
'''
tests/errors/break_outside_loop.pyx
0 → 100644
View file @
da61f334
break
class
A
:
break
cdef
class
B
:
break
def
test
():
break
try
:
break
except
:
pass
try
:
break
finally
:
pass
if
True
:
break
else
:
break
_ERRORS
=
u'''
2:0: break statement not inside loop
5:4: break statement not inside loop
8:4: break statement not inside loop
11:4: break statement not inside loop
16:5: break statement not inside loop
20:4: break statement not inside loop
22:4: break statement not inside loop
'''
tests/errors/continue_outside_loop.pyx
0 → 100644
View file @
da61f334
continue
class
A
:
continue
cdef
class
B
:
continue
def
test
():
continue
try
:
continue
except
:
pass
try
:
continue
finally
:
pass
if
True
:
continue
else
:
continue
_ERRORS
=
u'''
2:0: continue statement not inside loop
5:4: continue statement not inside loop
8:4: continue statement not inside loop
11:4: continue statement not inside loop
16:5: continue statement not inside loop
20:4: continue statement not inside loop
22:4: continue statement not inside loop
'''
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment