1# test constant optimisation, with consts that are bignums 2 3from micropython import const 4 5# check we can make consts from bignums 6Z1 = const(0xFFFFFFFF) 7Z2 = const(0xFFFFFFFFFFFFFFFF) 8print(hex(Z1), hex(Z2)) 9 10# check arithmetic with bignum 11Z3 = const(Z1 + Z2) 12Z4 = const((1 << 100) + Z1) 13print(hex(Z3), hex(Z4)) 14