circuitpython/tests/micropython/viper_misc_intbig.py
2023-02-01 13:38:41 +05:30

13 lines
162 B
Python

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