diff options
author | Damien George <damien.p.george@gmail.com> | 2018-04-04 13:57:22 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-04-04 13:57:22 +1000 |
commit | 7d5c753b17a1c9cbb8124839af144d0b8b936abc (patch) | |
tree | 33cc7e5dc3247f0b35beabd1b984244fa3c7e15d /tests/basics/int_big_rshift.py | |
parent | f684e9e1ab23cb04b0572745e9fe1c9dbfa0f126 (diff) | |
download | micropython-7d5c753b17a1c9cbb8124839af144d0b8b936abc.tar.gz micropython-7d5c753b17a1c9cbb8124839af144d0b8b936abc.zip |
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).
Diffstat (limited to 'tests/basics/int_big_rshift.py')
-rw-r--r-- | tests/basics/int_big_rshift.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/basics/int_big_rshift.py b/tests/basics/int_big_rshift.py index b2fecb36c9..e6e2a66993 100644 --- a/tests/basics/int_big_rshift.py +++ b/tests/basics/int_big_rshift.py @@ -3,5 +3,7 @@ print(i >> 1) print(i >> 1000) # result needs rounding up -print(-(1<<70) >> 80) -print(-0xffffffffffffffff >> 32) +i = -(1 << 70) +print(i >> 80) +i = -0xffffffffffffffff +print(i >> 32) |