circuitpython/tests/micropython/viper_misc_intbig.py

9 lines
158 B
Python
Raw Normal View History

import micropython
# unsigned ints
@micropython.viper
def viper_uint() -> uint:
return uint(-1)
import sys
print(viper_uint() == (sys.maxsize << 1 | 1))