From df02f5620ab32c4ae03f2720aac67db9686d48ef Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 4 Apr 2018 15:23:32 +1000 Subject: [PATCH] tests/basics/int_big1.py: Add test for big int in mp_obj_get_int_maybe. --- tests/basics/int_big1.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/basics/int_big1.py b/tests/basics/int_big1.py index 4bf44eb187..996c45b5da 100644 --- a/tests/basics/int_big1.py +++ b/tests/basics/int_big1.py @@ -99,3 +99,7 @@ x = -4611686018427387904 # big # sys.maxsize is a constant mpz, so test it's compatible with dynamic ones import sys 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))