mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-21 17:34:03 +08:00
862ac1f90d
Other directories in lit-test will host various parts of the test harness.
11 lines
327 B
Python
11 lines
327 B
Python
# RUN: %python -m artiq.compiler.testbench.jit %s
|
|
# RUN: %python %s
|
|
|
|
assert (lambda: 1)() == 1
|
|
assert (lambda x: x)(1) == 1
|
|
assert (lambda x, y: x + y)(1, 2) == 3
|
|
assert (lambda x, y=1: x + y)(1) == 2
|
|
assert (lambda x, y=1: x + y)(1, 2) == 3
|
|
assert (lambda x, y=1: x + y)(x=3) == 4
|
|
assert (lambda x, y=1: x + y)(y=2, x=3) == 5
|