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
1fb56b22
Commit
1fb56b22
authored
Apr 09, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for broken int-op test case
parent
4d05ad33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
tests/run/cintop.pyx
tests/run/cintop.pyx
+21
-7
No files found.
tests/run/cintop.pyx
View file @
1fb56b22
__doc__
=
"""
__doc__
=
"""
>>> int2 = 42
>>> int3 = 7
>>> char1 = ord('C')
>>> int1 = int2 | int3
>>> int1 |= int2 ^ int3
>>> int1 ^= int2 & int3
>>> int1 ^= int2 << int3
>>> int1 ^= int2 >> int3
>>> int1 ^= int2 << int3 | int2 >> int3
>>> long1 = char1 | int1
>>> print (int1, long1) == f()
True
>>> f()
>>> f()
(
5376, 67
)
(
45, 111
)
"""
"""
def
f
():
def
f
():
...
@@ -12,10 +26,10 @@ def f():
...
@@ -12,10 +26,10 @@ def f():
char1
=
c
'C'
char1
=
c
'C'
int1
=
int2
|
int3
int1
=
int2
|
int3
int1
=
int2
^
int3
int1
|
=
int2
^
int3
int1
=
int2
&
int3
int1
^
=
int2
&
int3
int1
=
int2
<<
int3
int1
^
=
int2
<<
int3
int1
=
int2
>>
int3
int1
^
=
int2
>>
int3
int1
=
int2
<<
int3
|
int2
>>
int3
int1
^
=
int2
<<
int3
|
int2
>>
int3
long1
=
char1
|
long2
long1
=
char1
|
int1
return
int1
,
long1
return
int1
,
long1
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