We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5de594 commit 3e183fdCopy full SHA for 3e183fd
2 files changed
integration_tests/CMakeLists.txt
@@ -507,6 +507,7 @@ RUN(NAME test_list_repeat LABELS cpython llvm NOFAST)
507
RUN(NAME test_list_reverse LABELS cpython llvm)
508
RUN(NAME test_list_pop LABELS cpython llvm NOFAST) # TODO: Remove NOFAST from here.
509
RUN(NAME test_list_pop2 LABELS cpython llvm NOFAST) # TODO: Remove NOFAST from here.
510
+RUN(NAME test_list_pop3 LABELS cpython llvm)
511
RUN(NAME test_list_compare LABELS cpython llvm)
512
RUN(NAME test_tuple_01 LABELS cpython llvm c)
513
RUN(NAME test_tuple_02 LABELS cpython llvm c NOFAST)
integration_tests/test_list_pop3.py
@@ -0,0 +1,14 @@
1
+from lpython import i32
2
+
3
+def main0():
4
+ a: list[i32] = [3, 4, 5]
5
+ i: i32
6
+ for i in range(10):
7
+ a.append(1)
8
+ a.pop()
9
10
+ print(a)
11
+ assert a[-1] == 5
12
+ assert len(a) == 3
13
14
+main0()
0 commit comments