circuitpython/tests/basics/int_big_rshift.py
Damien George 7d5c753b17 tests/basics: Modify int-big tests to prevent constant folding.
So that these tests test the runtime behaviour, not the compiler (which may
be executed offline).
2018-04-04 13:57:22 +10:00

10 lines
163 B
Python

i = 123456789012345678901234567890
print(i >> 1)
print(i >> 1000)
# result needs rounding up
i = -(1 << 70)
print(i >> 80)
i = -0xffffffffffffffff
print(i >> 32)