tests/basics/int_big1.py: Add test for big int in mp_obj_get_int_maybe.

This commit is contained in:
Damien George 2018-04-04 15:23:32 +10:00
parent 3f420c0c27
commit df02f5620a

View File

@ -99,3 +99,7 @@ x = -4611686018427387904 # big
# sys.maxsize is a constant mpz, so test it's compatible with dynamic ones # sys.maxsize is a constant mpz, so test it's compatible with dynamic ones
import sys import sys
print(sys.maxsize + 1 - 1 == sys.maxsize) print(sys.maxsize + 1 - 1 == sys.maxsize)
# test extraction of big int value via mp_obj_get_int_maybe
x = 1 << 70
print('a' * (x + 4 - x))