Skip to content

Commit d965240

Browse files
Add tests and register in CMakeLists
1 parent ce6084c commit d965240

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,3 +440,4 @@ RUN(NAME test_argv_01 LABELS llvm) # TODO: Test using CPython
440440
RUN(NAME global_syms_01 LABELS cpython llvm c)
441441
RUN(NAME global_syms_02 LABELS cpython llvm c)
442442
RUN(NAME global_syms_03_b LABELS cpython llvm c)
443+
RUN(NAME global_syms_03_c LABELS cpython llvm c)

integration_tests/global_syms_03_a.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
def populate_lists() -> list[i32]:
66
return [10, -20]
7-
l_2: list[i32] = populate_lists()
7+
l_2: list[i32]
8+
l_2 = populate_lists()
9+
10+
l_1.append('Thursday')
11+
print("Imported from global_syms_03_a")

integration_tests/global_syms_03_b.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from global_syms_03_a import l_1, l_2
22

3-
assert len(l_1) == 3
3+
assert len(l_1) == 4
44
assert l_1[1] == "Tuesday"
55
assert l_2[1] == -20

integration_tests/global_syms_03_c.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import global_syms_03_a
2+
3+
assert len(global_syms_03_a.l_1) == 4
4+
assert global_syms_03_a.l_1[3] == "Thursday"

0 commit comments

Comments
 (0)