mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-06 17:13:36 +08:00
20f5f8217d
In some cases (the `is` operator and wraparound arithmetics) the tests will only pass on ARTIQ Python. These are conditionally commented out.
22 lines
285 B
Python
22 lines
285 B
Python
# RUN: %python -m artiq.compiler.testbench.jit %s
|
|
# RUN: %python %s
|
|
|
|
if True:
|
|
assert True
|
|
|
|
if False:
|
|
assert False
|
|
|
|
if True:
|
|
assert True
|
|
else:
|
|
assert False
|
|
|
|
if False:
|
|
assert False
|
|
else:
|
|
assert True
|
|
|
|
assert (0 if True else 1) == 0
|
|
assert (0 if False else 1) == 1
|