Skip to content

Commit 36ba561

Browse files
committed
Add tests
1 parent c6df776 commit 36ba561

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
@@ -556,6 +556,7 @@ RUN(NAME test_import_04 IMPORT_PATH ..
556556
LABELS cpython llvm c)
557557
RUN(NAME test_import_05 LABELS cpython llvm c wasm wasm_x86 wasm_x64)
558558
RUN(NAME test_import_06 LABELS cpython llvm)
559+
RUN(NAME test_import_07 LABELS cpython llvm c)
559560
RUN(NAME test_math LABELS cpython llvm NOFAST)
560561
RUN(NAME test_numpy_01 LABELS cpython llvm c)
561562
RUN(NAME test_numpy_02 LABELS cpython llvm c)

integration_tests/test_import_07.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# test issue 2153
2+
from test_import_07_module import f as fa
3+
4+
def main0():
5+
assert fa(3) == 6
6+
assert fa(10) == 20
7+
8+
main0()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from lpython import i32
2+
3+
def f(x: i32) -> i32:
4+
return 2 * x

0 commit comments

Comments
 (0)