Skip to content

Commit

Permalink
Add tests and register in CMakeList
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirumalai-Shaktivel committed Oct 18, 2022
1 parent 6292d4f commit b12fab0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ RUN(NAME test_dict_05 LABELS cpython llvm)
RUN(NAME test_for_loop LABELS cpython llvm c)
RUN(NAME modules_01 LABELS cpython llvm)
RUN(NAME modules_02 LABELS cpython llvm)
RUN(NAME test_import_01 LABELS cpython llvm)
RUN(NAME test_math LABELS cpython llvm)
RUN(NAME test_numpy_01 LABELS cpython llvm c)
RUN(NAME test_numpy_02 LABELS cpython llvm c)
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/test_import/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .test_import_1 import print_a, print_b
from .test_import_2 import print_c
5 changes: 5 additions & 0 deletions integration_tests/test_import/test_import_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def print_a() -> str:
return "A"

def print_b() -> str:
return "B"
2 changes: 2 additions & 0 deletions integration_tests/test_import/test_import_2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def print_c() -> str:
return "C"
6 changes: 6 additions & 0 deletions integration_tests/test_import_01.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import test_import
from test_import import print_a

print(print_a())
print(test_import.print_b())
print(test_import.print_c())

0 comments on commit b12fab0

Please sign in to comment.