Skip to content

Commit b12fab0

Browse files
Add tests and register in CMakeList
1 parent 6292d4f commit b12fab0

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

integration_tests/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ RUN(NAME test_dict_05 LABELS cpython llvm)
192192
RUN(NAME test_for_loop LABELS cpython llvm c)
193193
RUN(NAME modules_01 LABELS cpython llvm)
194194
RUN(NAME modules_02 LABELS cpython llvm)
195+
RUN(NAME test_import_01 LABELS cpython llvm)
195196
RUN(NAME test_math LABELS cpython llvm)
196197
RUN(NAME test_numpy_01 LABELS cpython llvm c)
197198
RUN(NAME test_numpy_02 LABELS cpython llvm c)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from .test_import_1 import print_a, print_b
2+
from .test_import_2 import print_c
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def print_a() -> str:
2+
return "A"
3+
4+
def print_b() -> str:
5+
return "B"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def print_c() -> str:
2+
return "C"

integration_tests/test_import_01.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import test_import
2+
from test_import import print_a
3+
4+
print(print_a())
5+
print(test_import.print_b())
6+
print(test_import.print_c())

0 commit comments

Comments
 (0)