Skip to content

Commit 0f80aee

Browse files
committed
uncommented tests
1 parent 4bbd5a8 commit 0f80aee

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

integration_tests/CMakeLists.txt

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ RUN(NAME array_expr_03 LABELS cpython llvm llvm_jit c)
429429
RUN(NAME array_expr_04 LABELS cpython llvm llvm_jit c)
430430
# RUN(NAME array_expr_05 LABELS cpython llvm llvm_jit c)
431431
RUN(NAME array_expr_06 LABELS cpython llvm llvm_jit c)
432-
# RUN(NAME array_expr_07 LABELS cpython llvm llvm_jit c)
432+
RUN(NAME array_expr_07 LABELS cpython llvm llvm_jit c)
433433
RUN(NAME array_expr_08 LABELS cpython llvm llvm_jit c)
434434
RUN(NAME array_expr_09 LABELS cpython llvm llvm_jit c)
435435
RUN(NAME array_expr_10 LABELS cpython llvm llvm_jit c)
@@ -462,7 +462,7 @@ RUN(NAME exit_02c FAIL LABELS cpython llvm llvm_jit c)
462462
RUN(NAME print_01 LABELS cpython llvm llvm_jit wasm) # renable c, wasm not yet supports sep and end keywords
463463
RUN(NAME print_03 LABELS x86 c wasm wasm_x86 wasm_x64) # simple test case specifically for x86, wasm_x86 and wasm_x64
464464
RUN(NAME print_04 LABELS cpython llvm llvm_jit c)
465-
RUN(NAME print_06 LABELS cpython llvm llvm_jit) # renable c
465+
RUN(NAME print_06 LABELS cpython llvm llvm_jit) # renable c
466466
RUN(NAME print_05 LABELS cpython llvm llvm_jit c wasm wasm_x64)
467467
RUN(NAME print_float LABELS cpython llvm llvm_jit c wasm wasm_x64)
468468
RUN(NAME print_list_tuple_01 LABELS cpython llvm llvm_jit NOFAST) # renable c
@@ -510,7 +510,7 @@ RUN(NAME expr_02u LABELS cpython llvm llvm_jit c NOFAST)
510510

511511
RUN(NAME list_01 LABELS cpython llvm llvm_jit)
512512

513-
RUN(NAME loop_01 LABELS cpython llvm llvm_jit) # renable c
513+
RUN(NAME loop_01 LABELS cpython llvm llvm_jit) # renable c
514514
RUN(NAME loop_02 LABELS cpython llvm llvm_jit c wasm wasm_x86 wasm_x64)
515515
RUN(NAME loop_03 LABELS cpython llvm llvm_jit c wasm wasm_x64)
516516
RUN(NAME loop_04 LABELS cpython llvm llvm_jit c)
@@ -529,8 +529,8 @@ RUN(NAME test_types_01 LABELS cpython llvm llvm_jit c)
529529
RUN(NAME test_types_02 LABELS cpython llvm llvm_jit c wasm)
530530
# RUN(NAME test_str_01 LABELS cpython llvm llvm_jit c)
531531
# RUN(NAME test_str_02 LABELS cpython llvm llvm_jit) # renable c
532-
# RUN(NAME test_str_03 LABELS cpython llvm llvm_jit) # renable c
533-
# RUN(NAME test_str_04 LABELS cpython llvm llvm_jit wasm) # renable c
532+
RUN(NAME test_str_03 LABELS cpython llvm llvm_jit) # renable c
533+
RUN(NAME test_str_04 LABELS cpython llvm llvm_jit wasm) # renable c
534534
# RUN(NAME test_str_05 LABELS cpython llvm llvm_jit c)
535535
# RUN(NAME test_str_06 LABELS cpython llvm llvm_jit c)
536536
RUN(NAME test_string_01 LABELS cpython llvm llvm_jit) # renable c
@@ -547,16 +547,16 @@ 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)
550+
RUN(NAME test_list_count LABELS cpython llvm llvm_jit)
551551
RUN(NAME test_list_index LABELS cpython llvm llvm_jit)
552552
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)
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)
559-
RUN(NAME test_list_compare LABELS cpython llvm llvm_jit)
559+
RUN(NAME test_list_compare LABELS cpython llvm llvm_jit)
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)
@@ -566,11 +566,11 @@ 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)
569+
RUN(NAME test_tuple_concat LABELS cpython llvm llvm_jit)
570570
RUN(NAME test_tuple_nested LABELS cpython llvm llvm_jit)
571-
RUN(NAME test_const_dict LABELS cpython llvm llvm_jit)
571+
RUN(NAME test_const_dict LABELS cpython llvm llvm_jit)
572572
# RUN(NAME test_params LABELS cpython llvm llvm_jit NOFAST)
573-
RUN(NAME test_dict_01 LABELS cpython llvm llvm_jit c)
573+
RUN(NAME test_dict_01 LABELS cpython llvm llvm_jit c)
574574
RUN(NAME test_dict_02 LABELS cpython llvm llvm_jit c NOFAST)
575575
# RUN(NAME test_dict_03 LABELS cpython llvm llvm_jit NOFAST)
576576
# RUN(NAME test_dict_04 LABELS cpython llvm llvm_jit NOFAST)
@@ -579,29 +579,29 @@ RUN(NAME test_dict_05 LABELS cpython llvm llvm_jit c)
579579
# RUN(NAME test_dict_07 LABELS cpython llvm llvm_jit c)
580580
# RUN(NAME test_dict_08 LABELS cpython llvm llvm_jit c)
581581
# RUN(NAME test_dict_09 LABELS cpython llvm llvm_jit c)
582-
RUN(NAME test_dict_10 LABELS cpython llvm llvm_jit) # renable c
583-
RUN(NAME test_dict_11 LABELS cpython llvm llvm_jit c)
582+
RUN(NAME test_dict_10 LABELS cpython llvm llvm_jit) # renable c
583+
RUN(NAME test_dict_11 LABELS cpython llvm llvm_jit c)
584584
RUN(NAME test_dict_12 LABELS cpython llvm llvm_jit) # renable c
585585
# RUN(NAME test_dict_13 LABELS cpython llvm llvm_jit c)
586586
RUN(NAME test_dict_bool LABELS cpython llvm llvm_jit)
587-
# RUN(NAME test_dict_increment LABELS cpython llvm llvm_jit)
587+
RUN(NAME test_dict_increment LABELS cpython llvm llvm_jit)
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)
592-
RUN(NAME test_set_add LABELS cpython llvm llvm_jit)
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)
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)
602-
RUN(NAME test_import_01 LABELS cpython llvm llvm_jit) # renable c
602+
RUN(NAME test_import_01 LABELS cpython llvm llvm_jit) # renable c
603603
RUN(NAME test_import_02 LABELS cpython llvm llvm_jit c)
604-
RUN(NAME test_import_03 LABELS cpython llvm llvm_jit) # renable c
604+
RUN(NAME test_import_03 LABELS cpython llvm llvm_jit) # renable c
605605
RUN(NAME test_import_04 LABELS cpython llvm llvm_jit c)
606606
RUN(NAME test_import_05 LABELS cpython llvm llvm_jit c wasm wasm_x86 wasm_x64)
607607
RUN(NAME test_import_06 LABELS cpython llvm llvm_jit)
@@ -628,8 +628,8 @@ RUN(NAME elemental_12 LABELS cpython llvm llvm_jit c NOFAST)
628628
RUN(NAME elemental_13 LABELS cpython llvm llvm_jit c NOFAST)
629629
RUN(NAME test_random LABELS cpython llvm llvm_jit NOFAST)
630630
RUN(NAME test_random_02 LABELS cpython llvm llvm_jit NOFAST)
631-
RUN(NAME test_os LABELS cpython llvm llvm_jit NOFAST) # renable c
632-
RUN(NAME test_builtin LABELS cpython llvm llvm_jit) # renable c
631+
RUN(NAME test_os LABELS cpython llvm llvm_jit NOFAST) # renable c
632+
RUN(NAME test_builtin LABELS cpython llvm llvm_jit) # renable c
633633
RUN(NAME test_builtin_abs LABELS cpython llvm llvm_jit c)
634634
# RUN(NAME test_builtin_bool LABELS cpython llvm llvm_jit c)
635635
# RUN(NAME test_builtin_pow LABELS cpython llvm llvm_jit c EXTRA_ARGS --no-warnings)
@@ -669,7 +669,7 @@ RUN(NAME test_c_interop_03 LABELS cpython llvm c
669669
# RUN(NAME bindpy_04 LABELS cpython c_py EXTRA_ARGS --link-numpy NOFAST COPY_TO_BIN bindpy_04_module.py)
670670
# RUN(NAME bindpy_05 LABELS llvm_py c_py EXTRA_ARGS --enable-cpython COPY_TO_BIN bindpy_05_module.py REQ_PY_VER 3.10)
671671
# RUN(NAME bindpy_06 LABELS cpython llvm_py EXTRA_ARGS --enable-cpython NOFAST COPY_TO_BIN bindpy_06_module.py REQ_PY_VER 3.10)
672-
RUN(NAME test_generics_01 LABELS cpython llvm llvm_jit NOFAST) # renable c
672+
RUN(NAME test_generics_01 LABELS cpython llvm llvm_jit NOFAST) # renable c
673673
RUN(NAME test_cmath LABELS cpython llvm llvm_jit c NOFAST)
674674
RUN(NAME test_complex_01 LABELS cpython llvm llvm_jit c wasm wasm_x64)
675675
RUN(NAME test_complex_02 LABELS cpython llvm llvm_jit c)
@@ -774,7 +774,7 @@ RUN(NAME union_04 IMPORT_PATH ..
774774
# RUN(NAME test_str_to_int LABELS cpython llvm llvm_jit c)
775775
# RUN(NAME test_platform LABELS cpython llvm llvm_jit) # renable c
776776
RUN(NAME test_vars_01 LABELS cpython llvm llvm_jit)
777-
RUN(NAME test_version LABELS cpython llvm llvm_jit)
777+
RUN(NAME test_version LABELS cpython llvm llvm_jit)
778778
RUN(NAME logical_binop1 LABELS cpython llvm llvm_jit)
779779
# RUN(NAME test_logical_compare LABELS cpython llvm llvm_jit) # TODO: Add C backend after fixing issue #2708
780780
# RUN(NAME test_logical_assignment LABELS cpython llvm llvm_jit) # TODO: Add C backend after fixing issue #2708
@@ -799,13 +799,13 @@ RUN(NAME generics_01 LABELS cpython llvm llvm_jit) # renable c
799799
RUN(NAME generics_array_01 LABELS cpython llvm llvm_jit c)
800800
RUN(NAME generics_array_02 LABELS cpython llvm llvm_jit c)
801801
RUN(NAME generics_array_03 LABELS cpython llvm llvm_jit c)
802-
RUN(NAME generics_list_01 LABELS cpython llvm llvm_jit) # renable c
802+
RUN(NAME generics_list_01 LABELS cpython llvm llvm_jit) # renable c
803803
RUN(NAME test_statistics_01 LABELS cpython llvm llvm_jit NOFAST)
804804
# RUN(NAME test_statistics_02 LABELS cpython llvm llvm_jit NOFAST REQ_PY_VER 3.10)
805805
# RUN(NAME test_attributes LABELS cpython llvm llvm_jit)
806806
# RUN(NAME test_str_attributes LABELS cpython llvm llvm_jit c)
807-
# RUN(NAME kwargs_01 LABELS cpython llvm llvm_jit NOFAST) # renable c
808-
RUN(NAME def_func_01 LABELS cpython llvm llvm_jit) # renable c
807+
RUN(NAME kwargs_01 LABELS cpython llvm llvm_jit NOFAST) # renable c
808+
RUN(NAME def_func_01 LABELS cpython llvm llvm_jit) # renable c
809809

810810
RUN(NAME func_inline_01 LABELS llvm llvm_jit c wasm)
811811
RUN(NAME func_inline_02 LABELS cpython llvm llvm_jit c)
@@ -829,7 +829,7 @@ RUN(NAME global_syms_02 LABELS cpython llvm llvm_jit c)
829829
# RUN(NAME global_syms_03_b LABELS cpython llvm llvm_jit c)
830830
# RUN(NAME global_syms_03_c LABELS cpython llvm llvm_jit c)
831831
RUN(NAME global_syms_04 LABELS cpython llvm llvm_jit c wasm wasm_x64)
832-
RUN(NAME global_syms_05 LABELS cpython llvm llvm_jit c)
832+
RUN(NAME global_syms_05 LABELS cpython llvm llvm_jit c)
833833
RUN(NAME global_syms_06 LABELS cpython llvm llvm_jit c)
834834

835835
RUN(NAME callback_01 LABELS cpython llvm llvm_jit c)
@@ -838,7 +838,7 @@ RUN(NAME callback_03 LABELS cpython llvm llvm_jit c)
838838

839839
RUN(NAME lambda_01 LABELS cpython llvm llvm_jit)
840840

841-
RUN(NAME c_mangling LABELS cpython llvm llvm_jit) # renable c
841+
RUN(NAME c_mangling LABELS cpython llvm llvm_jit) # renable c
842842
# RUN(NAME class_01 LABELS cpython llvm llvm_jit)
843843
# RUN(NAME class_02 LABELS cpython llvm llvm_jit)
844844
# RUN(NAME class_03 LABELS cpython llvm llvm_jit)

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5711,10 +5711,10 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
57115711
}
57125712

57135713
if (ASR::is_a<ASR::String_t>(*v->m_type)){
5714-
ASR::String_t *str_type1 = ASR::down_cast<ASR::String_t>(v->m_type),
5715-
*str_type2 = ASR::down_cast<ASR::String_t>(value_type);
5716-
int64_t l1 = ((ASR::IntegerConstant_t *)str_type1->m_len)->m_n,
5717-
l2 = ((ASR::IntegerConstant_t *)str_type2->m_len)->m_n;
5714+
ASR::String_t *str_type1 = ASR::down_cast<ASR::String_t>(v->m_type);
5715+
ASR::String_t *str_type2 = ASR::down_cast<ASR::String_t>(value_type);
5716+
int64_t l1 = ((ASR::IntegerConstant_t *)str_type1->m_len)->m_n;
5717+
int64_t l2 = ((ASR::IntegerConstant_t *)str_type2->m_len)->m_n;
57185718
((ASR::IntegerConstant_t *)str_type1->m_len)->m_n = l1>l2?l1:l2;
57195719
}
57205720
}

0 commit comments

Comments
 (0)