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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
d8efb404
Commit
d8efb404
authored
May 26, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test cases for optional arguments in cdef functions
parent
40955fec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
tests/errors/cdefoptargs.pyx
tests/errors/cdefoptargs.pyx
+9
-0
tests/run/cdefoptargs.pyx
tests/run/cdefoptargs.pyx
+21
-0
No files found.
tests/errors/cdefoptargs.pyx
0 → 100644
View file @
d8efb404
def
call5
():
b
(
1
,
2
,
3
,
4
,
5
)
cdef
b
(
a
,
b
,
c
=
1
,
d
=
2
):
pass
_ERRORS
=
"""
2:5:Call with wrong number of arguments (expected at most 4, got 5)
"""
tests/run/cdefoptargs.pyx
0 → 100644
View file @
d8efb404
__doc__
=
u"""
>>> call2()
>>> call3()
>>> call4()
"""
# the calls:
def
call2
():
b
(
1
,
2
)
def
call3
():
b
(
1
,
2
,
3
)
def
call4
():
b
(
1
,
2
,
3
,
4
)
# the called function:
cdef
b
(
a
,
b
,
c
=
1
,
d
=
2
):
pass
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