Skip to content

Commit 15ab2bf

Browse files
authored
Add missing imports to the integration tests (#1655)
1 parent c28cef0 commit 15ab2bf

18 files changed

+18
-36
lines changed

integration_tests/bindc_03.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from lpython import c_p_pointer, CPtr, pointer, i32, Pointer, ccall, p_c_pointer, dataclass
1+
from lpython import c_p_pointer, CPtr, pointer, i32, Pointer, ccall, p_c_pointer, dataclass, ccallable
22

33
@dataclass
44
class ArrayWrapped:

integration_tests/expr_03.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from lpython import i32
2+
13
def main0():
24
x: i32
35
x = 5

integration_tests/expr_05.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from lpython import i32, i64
1+
from lpython import i32, i64, f64
22

33
def test_multiply(a: i32, b: i32) -> i32:
44
return a*b

integration_tests/if_01.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from lpython import i32
2+
13
def Test_if_01():
24
z: i32 = 0
35
if True:

integration_tests/modules_01.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from modules_01b import f #, g
2+
from lpython import i32
23

34
def main0():
45
x: i32

integration_tests/modules_02.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from modules_02b import f
2+
from lpython import i32
23

34
def main0():
45
x: i32

integration_tests/str_to_list_cast.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from lpython import i32
2+
13
def f():
24
x: list[str]
35
x = list("lpython")

integration_tests/test_c_interop_05.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from lpython import ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, p_c_pointer
1+
from lpython import ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, p_c_pointer, ccallback
22

33
@ccall
44
def f_i32_i32(x: i32) -> i32:

integration_tests/test_for_loop.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from lpython import i32
2+
13
def test_issue_1153():
24
start: list[i32] = [-10, 0, 10]
35
stop: list[i32] = [20, 0, -20]

integration_tests/vec_01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from lpython import f64
1+
from lpython import f64, i32
22
from numpy import empty
33

44
def loop_vec():

tests/reference/asr-expr_05-3a37324.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"basename": "asr-expr_05-3a37324",
33
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
44
"infile": "tests/../integration_tests/expr_05.py",
5-
"infile_hash": "618623fd1bf29b81d8f6054f7c2fc67e4cfedfe3ca6002ebe7b1b71b",
5+
"infile_hash": "d3f97cefd69f6ba4e8f9ee28dfd474f48d8acfbdc5801ca842af764d",
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-expr_05-3a37324.stdout",

tests/reference/asr-modules_02-ec92e6f.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"basename": "asr-modules_02-ec92e6f",
33
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
44
"infile": "tests/../integration_tests/modules_02.py",
5-
"infile_hash": "d1e8c86cf657c96ea4fb2927ee87b3cd25956936aa49176ff0a0073d",
5+
"infile_hash": "dcb00ac27cbbcdec61d81f1df9e852ba81a2197e7804ec89cab76e44",
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-modules_02-ec92e6f.stdout",

tests/reference/asr-vec_01-66ac423.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"basename": "asr-vec_01-66ac423",
33
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
44
"infile": "tests/../integration_tests/vec_01.py",
5-
"infile_hash": "ac6691a88207cbc7445095ecc898e9cce9efd9f9e874c473aec70e16",
5+
"infile_hash": "b22cabe2248cf58c7ffaad83dd8dc5b2433f244ee23b0703b536547b",
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-vec_01-66ac423.stdout",

tests/reference/ast-expr3-c3dcaab.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/reference/ast-expr3-c3dcaab.stdout

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/reference/pass_loop_vectorise-vec_01-be9985e.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"basename": "pass_loop_vectorise-vec_01-be9985e",
33
"cmd": "lpython --pass=loop_vectorise --show-asr --no-color {infile} -o {outfile}",
44
"infile": "tests/../integration_tests/vec_01.py",
5-
"infile_hash": "ac6691a88207cbc7445095ecc898e9cce9efd9f9e874c473aec70e16",
5+
"infile_hash": "b22cabe2248cf58c7ffaad83dd8dc5b2433f244ee23b0703b536547b",
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "pass_loop_vectorise-vec_01-be9985e.stdout",

tests/reference/pass_print_list-print_02-d2853f6.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/reference/pass_print_list-print_02-d2853f6.stdout

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)