circuitpython/tests/micropython/viper_binop_comp_imm.py
2021-03-15 19:27:36 +05:30

11 lines
163 B
Python

# comparisons with immediate boundary values
@micropython.viper
def f(a: int):
print(a == -1, a == -255, a == -256, a == -257)
f(-1)
f(-255)
f(-256)
f(-257)