Skip to content

Add missing imports to the integration tests #1655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration_tests/bindc_03.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from lpython import c_p_pointer, CPtr, pointer, i32, Pointer, ccall, p_c_pointer, dataclass
from lpython import c_p_pointer, CPtr, pointer, i32, Pointer, ccall, p_c_pointer, dataclass, ccallable

@dataclass
class ArrayWrapped:
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/expr_03.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from lpython import i32

def main0():
x: i32
x = 5
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_05.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from lpython import i32, i64
from lpython import i32, i64, f64

def test_multiply(a: i32, b: i32) -> i32:
return a*b
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/if_01.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from lpython import i32

def Test_if_01():
z: i32 = 0
if True:
Expand Down
1 change: 1 addition & 0 deletions integration_tests/modules_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from modules_01b import f #, g
from lpython import i32

def main0():
x: i32
Expand Down
1 change: 1 addition & 0 deletions integration_tests/modules_02.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from modules_02b import f
from lpython import i32

def main0():
x: i32
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/str_to_list_cast.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from lpython import i32

def f():
x: list[str]
x = list("lpython")
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_c_interop_05.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from lpython import ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, p_c_pointer
from lpython import ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, p_c_pointer, ccallback

@ccall
def f_i32_i32(x: i32) -> i32:
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/test_for_loop.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from lpython import i32

def test_issue_1153():
start: list[i32] = [-10, 0, 10]
stop: list[i32] = [20, 0, -20]
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/vec_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from lpython import f64
from lpython import f64, i32
from numpy import empty

def loop_vec():
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-expr_05-3a37324.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"basename": "asr-expr_05-3a37324",
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
"infile": "tests/../integration_tests/expr_05.py",
"infile_hash": "618623fd1bf29b81d8f6054f7c2fc67e4cfedfe3ca6002ebe7b1b71b",
"infile_hash": "d3f97cefd69f6ba4e8f9ee28dfd474f48d8acfbdc5801ca842af764d",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-expr_05-3a37324.stdout",
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-modules_02-ec92e6f.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"basename": "asr-modules_02-ec92e6f",
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
"infile": "tests/../integration_tests/modules_02.py",
"infile_hash": "d1e8c86cf657c96ea4fb2927ee87b3cd25956936aa49176ff0a0073d",
"infile_hash": "dcb00ac27cbbcdec61d81f1df9e852ba81a2197e7804ec89cab76e44",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-modules_02-ec92e6f.stdout",
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/asr-vec_01-66ac423.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"basename": "asr-vec_01-66ac423",
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
"infile": "tests/../integration_tests/vec_01.py",
"infile_hash": "ac6691a88207cbc7445095ecc898e9cce9efd9f9e874c473aec70e16",
"infile_hash": "b22cabe2248cf58c7ffaad83dd8dc5b2433f244ee23b0703b536547b",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-vec_01-66ac423.stdout",
Expand Down
13 changes: 0 additions & 13 deletions tests/reference/ast-expr3-c3dcaab.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/reference/ast-expr3-c3dcaab.stdout

This file was deleted.

2 changes: 1 addition & 1 deletion tests/reference/pass_loop_vectorise-vec_01-be9985e.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"basename": "pass_loop_vectorise-vec_01-be9985e",
"cmd": "lpython --pass=loop_vectorise --show-asr --no-color {infile} -o {outfile}",
"infile": "tests/../integration_tests/vec_01.py",
"infile_hash": "ac6691a88207cbc7445095ecc898e9cce9efd9f9e874c473aec70e16",
"infile_hash": "b22cabe2248cf58c7ffaad83dd8dc5b2433f244ee23b0703b536547b",
"outfile": null,
"outfile_hash": null,
"stdout": "pass_loop_vectorise-vec_01-be9985e.stdout",
Expand Down
13 changes: 0 additions & 13 deletions tests/reference/pass_print_list-print_02-d2853f6.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/reference/pass_print_list-print_02-d2853f6.stdout

This file was deleted.