circuitpython/tests/micropython/viper_misc_intbig.py

12 lines
161 B
Python
Raw Normal View History

import micropython
# unsigned ints
@micropython.viper
def viper_uint() -> uint:
return uint(-1)
2021-03-15 09:57:36 -04:00
import sys
2021-03-15 09:57:36 -04:00
print(viper_uint() == (sys.maxsize << 1 | 1))