Skip to content

Commit dba6122

Browse files
committed
Fixed sets
1 parent 3a3b86f commit dba6122

3 files changed

Lines changed: 16 additions & 13 deletions

File tree

integration_tests/CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -547,27 +547,27 @@ RUN(NAME test_list_06 LABELS cpython llvm llvm_jit c)
547547
# RUN(NAME test_list_11 LABELS cpython llvm llvm_jit c)
548548
# RUN(NAME test_list_section LABELS cpython llvm llvm_jit c NOFAST)
549549
# RUN(NAME test_list_section2 LABELS cpython llvm llvm_jit c NOFAST)
550-
# RUN(NAME test_list_count LABELS cpython llvm llvm_jit) # post sync fix
551-
# RUN(NAME test_list_index LABELS cpython llvm llvm_jit) # post sync fix
552-
# RUN(NAME test_list_index2 LABELS cpython llvm llvm_jit) # post sync fix
550+
RUN(NAME test_list_count LABELS cpython llvm llvm_jit)
551+
RUN(NAME test_list_index LABELS cpython llvm llvm_jit)
552+
RUN(NAME test_list_index2 LABELS cpython llvm llvm_jit)
553553
# RUN(NAME test_list_repeat LABELS cpython llvm llvm_jit c NOFAST)
554554
# RUN(NAME test_list_repeat2 LABELS cpython llvm llvm_jit c NOFAST)
555-
# RUN(NAME test_list_reverse LABELS cpython llvm llvm_jit) # post sync fix
555+
RUN(NAME test_list_reverse LABELS cpython llvm llvm_jit)
556556
# RUN(NAME test_list_pop LABELS cpython llvm llvm_jit NOFAST) # TODO: Remove NOFAST from here.
557557
# RUN(NAME test_list_pop2 LABELS cpython llvm llvm_jit NOFAST) # TODO: Remove NOFAST from here.
558558
RUN(NAME test_list_pop3 LABELS cpython llvm llvm_jit)
559559
# RUN(NAME test_list_compare LABELS cpython llvm llvm_jit) # post sync fix
560560
RUN(NAME test_list_compare2 LABELS cpython llvm llvm_jit)
561561
# RUN(NAME test_list_concat LABELS cpython llvm llvm_jit c NOFAST)
562562
RUN(NAME test_list_reserve LABELS cpython llvm llvm_jit)
563-
# RUN(NAME test_const_list LABELS cpython llvm llvm_jit) # post sync fix
563+
RUN(NAME test_const_list LABELS cpython llvm llvm_jit)
564564
# RUN(NAME test_const_access LABELS cpython llvm llvm_jit) # post sync fix
565565
RUN(NAME test_tuple_01 LABELS cpython llvm llvm_jit) # renable c
566566
# RUN(NAME test_tuple_02 LABELS cpython llvm llvm_jit c NOFAST)
567567
RUN(NAME test_tuple_03 LABELS cpython llvm llvm_jit) # renable c
568568
RUN(NAME test_tuple_04 LABELS cpython llvm llvm_jit) # renable c
569-
# RUN(NAME test_tuple_concat LABELS cpython llvm llvm_jit) # post sync fix
570-
# RUN(NAME test_tuple_nested LABELS cpython llvm llvm_jit) # post sync fix
569+
RUN(NAME test_tuple_concat LABELS cpython llvm llvm_jit)
570+
RUN(NAME test_tuple_nested LABELS cpython llvm llvm_jit)
571571
# RUN(NAME test_const_dict LABELS cpython llvm llvm_jit) # post sync fix
572572
# RUN(NAME test_params LABELS cpython llvm llvm_jit NOFAST)
573573
# RUN(NAME test_dict_01 LABELS cpython llvm llvm_jit c) # post sync fix
@@ -588,14 +588,14 @@ RUN(NAME test_tuple_04 LABELS cpython llvm llvm_jit) # renable c
588588
# RUN(NAME test_dict_keys_values LABELS cpython llvm llvm_jit)
589589
# RUN(NAME test_dict_nested1 LABELS cpython llvm llvm_jit)
590590
# RUN(NAME test_dict_clear LABELS cpython llvm)
591-
# RUN(NAME test_set_len LABELS cpython llvm llvm_jit) # post sync fix
592-
# RUN(NAME test_set_add LABELS cpython llvm llvm_jit) # post sync fix
591+
RUN(NAME test_set_len LABELS cpython llvm llvm_jit)
592+
RUN(NAME test_set_add LABELS cpython llvm llvm_jit)
593593
# RUN(NAME test_set_remove LABELS cpython llvm llvm_jit)
594594
# RUN(NAME test_set_discard LABELS cpython llvm llvm_jit)
595595
# RUN(NAME test_set_from_list LABELS cpython llvm llvm_jit)
596596
# RUN(NAME test_set_clear LABELS cpython llvm)
597597
# RUN(NAME test_set_pop LABELS cpython llvm)
598-
# RUN(NAME test_global_set LABELS cpython llvm llvm_jit) # post sync fix
598+
RUN(NAME test_global_set LABELS cpython llvm llvm_jit)
599599
RUN(NAME test_for_loop LABELS cpython llvm llvm_jit c)
600600
RUN(NAME modules_01 LABELS cpython llvm llvm_jit c wasm wasm_x86 wasm_x64)
601601
RUN(NAME modules_02 LABELS cpython llvm llvm_jit c wasm wasm_x86 wasm_x64)
@@ -647,7 +647,7 @@ RUN(NAME test_builtin_round LABELS cpython llvm llvm_jit c)
647647
# RUN(NAME test_math1 LABELS cpython llvm llvm_jit c)
648648
# RUN(NAME test_math_02 LABELS cpython llvm llvm_jit NOFAST)
649649
# RUN(NAME test_math_03 LABELS llvm llvm_jit) #1595: TODO: Test using CPython (3.11 recommended)
650-
# RUN(NAME test_pass_compare LABELS cpython llvm llvm_jit) # renable c # post sync fix
650+
RUN(NAME test_pass_compare LABELS cpython llvm llvm_jit) # renable c
651651
RUN(NAME test_c_interop_01 LABELS cpython llvm llvm_jit c)
652652
# RUN(NAME test_c_interop_02 LABELS cpython llvm c
653653
# EXTRAFILES test_c_interop_02b.c)

integration_tests/test_set_len.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
from lpython import i32
22

3+
34
def test_set():
45
s: set[i32]
56
s = {1, 2, 22, 2, -1, 1}
7+
assert len(s) == 4
68
s2: set[str]
7-
s2 = {'a', 'b', 'cd', 'b', 'abc', 'a'}
9+
s2 = {"a", "b", "cd", "b", "abc", "a"}
810
assert len(s2) == 4
911

12+
1013
test_set()

libasr

0 commit comments

Comments
 (0)