Skip to content

Commit 928a9ed

Browse files
committed
Fix tests for C backend
1 parent 7736db5 commit 928a9ed

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

integration_tests/test_list_11.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
from lpython import i32
22

3+
l: list[i32] = [1, 2]
4+
5+
def add_item(i: i32) -> list[i32]:
6+
l.append(i)
7+
return l
8+
9+
310
def return_empty_list_of_tuples() -> list[i32]:
411
return []
512

@@ -20,12 +27,6 @@ def test_iterate_over_string():
2027
i+=1
2128

2229
def test_issue_2639():
23-
l: list[i32] = [1, 2]
24-
25-
def add_item(i: i32) -> list[i32]:
26-
l.append(i)
27-
return l
28-
2930
print(add_item(3))
3031

3132
assert len(l) == 3

0 commit comments

Comments
 (0)