File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -507,6 +507,7 @@ RUN(NAME test_list_repeat LABELS cpython llvm NOFAST)
507
507
RUN (NAME test_list_reverse LABELS cpython llvm )
508
508
RUN (NAME test_list_pop LABELS cpython llvm NOFAST ) # TODO: Remove NOFAST from here.
509
509
RUN (NAME test_list_pop2 LABELS cpython llvm NOFAST ) # TODO: Remove NOFAST from here.
510
+ RUN (NAME test_list_pop3 LABELS cpython llvm )
510
511
RUN (NAME test_list_compare LABELS cpython llvm )
511
512
RUN (NAME test_tuple_01 LABELS cpython llvm c )
512
513
RUN (NAME test_tuple_02 LABELS cpython llvm c NOFAST )
Original file line number Diff line number Diff line change
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 ()
You can’t perform that action at this time.
0 commit comments