Skip to content

Commit

Permalink
Fix tests for C backend
Browse files Browse the repository at this point in the history
  • Loading branch information
advikkabra authored and Shaikh-Ubaid committed Apr 19, 2024
1 parent 3f599d6 commit 2e255fe
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions integration_tests/test_list_11.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from lpython import i32

l: list[i32] = [1, 2]

def add_item(i: i32) -> list[i32]:
l.append(i)
return l


def return_empty_list_of_tuples() -> list[i32]:
return []

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

def test_issue_2639():
l: list[i32] = [1, 2]

def add_item(i: i32) -> list[i32]:
l.append(i)
return l

print(add_item(3))

assert len(l) == 3
Expand Down

0 comments on commit 2e255fe

Please sign in to comment.