Skip to content

Commit e74ee9f

Browse files
Add tests and register in CMakeLists
1 parent 2c12efb commit e74ee9f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,3 +436,4 @@ RUN(NAME bit_operations_i64 LABELS cpython llvm c wasm)
436436
RUN(NAME test_argv_01 LABELS llvm) # TODO: Test using CPython
437437
RUN(NAME global_syms_01 LABELS cpython llvm c)
438438
RUN(NAME global_syms_02 LABELS cpython llvm c)
439+
RUN(NAME global_syms_03_b LABELS cpython llvm c)

integration_tests/global_syms_03_a.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from ltypes import i32
2+
3+
l_1: list[str] = ['Monday', 'Tuesday', 'Wednesday']
4+
5+
def populate_lists() -> list[i32]:
6+
return [10, -20]
7+
l_2: list[i32] = populate_lists()

integration_tests/global_syms_03_b.py

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

0 commit comments

Comments
 (0)