circuitpython/tests/micropython/viper_misc_intbig.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
162 B
Python
Raw Normal View History

import micropython
2023-02-01 03:08:41 -05:00
# 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))