Commit 1fb56b22 authored by Stefan Behnel's avatar Stefan Behnel

fix for broken int-op test case

parent 4d05ad33
__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()
(5376, 67)
(45, 111)
"""
def f():
......@@ -12,10 +26,10 @@ def f():
char1 = c'C'
int1 = int2 | int3
int1 = int2 ^ int3
int1 = int2 & int3
int1 = int2 << int3
int1 = int2 >> int3
int1 = int2 << int3 | int2 >> int3
long1 = char1 | long2
int1 |= int2 ^ int3
int1 ^= int2 & int3
int1 ^= int2 << int3
int1 ^= int2 >> int3
int1 ^= int2 << int3 | int2 >> int3
long1 = char1 | int1
return int1, long1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment