forked from M-Labs/artiq
1
0
Fork 0
artiq/lit-test/test/integration/list.py

9 lines
165 B
Python

# RUN: %python -m artiq.compiler.testbench.jit %s
# RUN: %python %s
[x, y] = [1, 2]
assert (x, y) == (1, 2)
lst = [1, 2, 3]
assert [x*x for x in lst] == [1, 4, 9]