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
c976e8d0
Commit
c976e8d0
authored
Dec 02, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add simple test case that tends to be more inefficient than necessary
parent
35619f6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
tests/run/and.pyx
tests/run/and.pyx
+16
-0
No files found.
tests/run/and.pyx
View file @
c976e8d0
...
...
@@ -59,3 +59,19 @@ def and2_literal():
5
"""
return
True
and
5
def
c_int_results
(
int
x
):
"""
>>> c_int_results(7)
(0, 0)
>>> c_int_results(5)
(1, 1)
"""
cdef
int
expr1
,
expr2
,
r1
,
r2
expr1
=
x
==
5
expr2
=
1
r1
=
expr1
and
expr2
r2
=
(
x
==
5
)
and
1
return
r1
,
r2
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