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
6cf7ea90
Commit
6cf7ea90
authored
Aug 01, 2011
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add runtime test with unused arguments
parent
8d4c8f4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
tests/run/unused.pyx
tests/run/unused.pyx
+43
-0
No files found.
tests/run/unused.pyx
0 → 100644
View file @
6cf7ea90
cdef
c_unused_simple
(
a
,
b
,
c
):
"""
>>> c_unused_simple(1, 2, 3)
3
"""
return
a
+
b
cdef
c_unused_optional
(
a
,
b
,
c
=
1
,
d
=
2
):
"""
>>> c_unused_optional(1, 2)
4
>>> c_unused_optional(1, 2, 3, 4)
6
"""
return
b
+
d
cpdef
cp_unused_simple
(
a
,
b
,
c
):
"""
>>> cp_unused_simple(1, 2, 3)
3
"""
return
a
+
b
cpdef
cp_unused_optional
(
a
,
b
,
c
=
1
,
d
=
2
):
"""
>>> cp_unused_optional(1, 2)
4
>>> cp_unused_optional(1, 2, 3, 4)
6
"""
return
b
+
d
cdef
class
Unused
:
"""
>>> o = Unused()
"""
cpdef
cp_unused_simple
(
self
,
a
,
b
,
c
):
return
c
cpdef
cp_unused_optional
(
self
,
a
,
b
,
c
=
1
,
d
=
2
):
return
b
+
d
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