提交 df02f562 编写于 作者: D Damien George

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

上级 3f420c0c
......@@ -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))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册