File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -430,4 +430,5 @@ RUN(NAME bit_operations_i32 LABELS cpython llvm wasm wasm_x64)
430
430
RUN (NAME bit_operations_i64 LABELS cpython llvm wasm )
431
431
432
432
RUN (NAME test_argv_01 LABELS llvm ) # TODO: Test using CPython
433
- RUN (NAME global_syms_01 LABELS cpython )
433
+ RUN (NAME global_syms_01 LABELS cpython llvm )
434
+ RUN (NAME global_syms_02 LABELS cpython llvm )
Original file line number Diff line number Diff line change
1
+ from ltypes import i32
2
+
3
+ x : list [i32 ]
4
+ x = [0 , 1 ]
5
+ x .append (3 )
6
+
7
+ def test_global_symbols ():
8
+ assert len (x ) == 3
9
+ x .insert (2 , 2 )
10
+
11
+ test_global_symbols ()
12
+
13
+ i : i32
14
+ for i in range (len (x )):
15
+ assert i == x [i ]
16
+
17
+ tmp : list [i32 ]
18
+ tmp = x
19
+
20
+ tmp .remove (0 )
21
+ assert len (tmp ) == 3
22
+ tmp .clear ()
23
+ assert len (tmp ) == 0
You can’t perform that action at this time.
0 commit comments