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 13:38:41 +05:30
# unsigned ints
@micropython.viper
def viper_uint() -> uint:
return uint(-1)
2021-03-15 19:27:36 +05:30
import sys
2021-03-15 19:27:36 +05:30
print(viper_uint() == (sys.maxsize << 1 | 1))