Skip to content

Commit 775c084

Browse files
committed
Add integration tests
1 parent 6bd8d60 commit 775c084

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ RUN(NAME test_builtin_round LABELS cpython llvm c)
287287
RUN(NAME test_builtin_divmod LABELS cpython llvm c)
288288
RUN(NAME test_math1 LABELS cpython llvm c)
289289
RUN(NAME test_math_02 LABELS cpython llvm)
290+
RUN(NAME test_pass_compare LABELS cpython llvm)
290291
RUN(NAME test_c_interop_01 LABELS cpython llvm c)
291292
RUN(NAME test_c_interop_02 LABELS cpython llvm c
292293
EXTRAFILES test_c_interop_02b.c)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from ltypes import i32
2+
3+
def f():
4+
a11: tuple[i32, i32]
5+
b11: tuple[i32, i32]
6+
a11 = (1, 2)
7+
b11 = (1, 2)
8+
assert a11 == b11
9+
c11: tuple[i32, i32]
10+
c11 = (1, 3)
11+
assert a11 != c11 and c11 != b11
12+
a: tuple[tuple[i32, i32], str, bool]
13+
b: tuple[tuple[i32, i32], str, bool]
14+
a = (a11, 'ok', True)
15+
b = (b11, 'ok', True)
16+
assert a == b
17+
b = (b11, 'notok', True)
18+
assert a != b
19+
20+
21+
f()

0 commit comments

Comments
 (0)