Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Smit-create authored and kabra1110 committed Aug 4, 2023
1 parent a337df3 commit 21289fe
Show file tree
Hide file tree
Showing 3 changed files with 13 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 @@ -556,6 +556,7 @@ RUN(NAME test_import_04 IMPORT_PATH ..
LABELS cpython llvm c)
RUN(NAME test_import_05 LABELS cpython llvm c wasm wasm_x86 wasm_x64)
RUN(NAME test_import_06 LABELS cpython llvm)
RUN(NAME test_import_07 LABELS cpython llvm c)
RUN(NAME test_math LABELS cpython llvm NOFAST)
RUN(NAME test_numpy_01 LABELS cpython llvm c)
RUN(NAME test_numpy_02 LABELS cpython llvm c)
Expand Down
8 changes: 8 additions & 0 deletions integration_tests/test_import_07.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# test issue 2153
from test_import_07_module import f as fa

def main0():
assert fa(3) == 6
assert fa(10) == 20

main0()
4 changes: 4 additions & 0 deletions integration_tests/test_import_07_module.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from lpython import i32

def f(x: i32) -> i32:
return 2 * x

0 comments on commit 21289fe

Please sign in to comment.