circuitpython/tests/micropython/viper_binop_comp_imm.py

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

11 lines
163 B
Python
Raw Normal View History

# comparisons with immediate boundary values
@micropython.viper
def f(a: int):
print(a == -1, a == -255, a == -256, a == -257)
2021-03-15 09:57:36 -04:00
f(-1)
f(-255)
f(-256)
f(-257)