circuitpython/tests/micropython/viper_misc_intbig.py
2023-02-02 12:51:03 +11:00

13 lines
164 B
Python

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