Skip to content

Commit 4bbd5a8

Browse files
committed
All pre sync integration tests running
1 parent 490191c commit 4bbd5a8

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

integration_tests/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ RUN(NAME test_tuple_01 LABELS cpython llvm llvm_jit) # renable c
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
569569
RUN(NAME test_tuple_concat LABELS cpython llvm llvm_jit)
570-
# RUN(NAME test_tuple_nested LABELS cpython llvm llvm_jit) # post sync
570+
RUN(NAME test_tuple_nested LABELS cpython llvm llvm_jit)
571571
RUN(NAME test_const_dict LABELS cpython llvm llvm_jit)
572572
# RUN(NAME test_params LABELS cpython llvm llvm_jit NOFAST)
573573
RUN(NAME test_dict_01 LABELS cpython llvm llvm_jit c)
@@ -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 # post sync
632-
# RUN(NAME test_builtin LABELS cpython llvm llvm_jit) # renable c # post sync
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)

libasr

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5709,6 +5709,14 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
57095709
std::string var_name = std::string(v->m_name);
57105710
throw SemanticError("Only Class constructor is allowed in the object assignment for now", target->base.loc);
57115711
}
5712+
5713+
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;
5718+
((ASR::IntegerConstant_t *)str_type1->m_len)->m_n = l1>l2?l1:l2;
5719+
}
57125720
}
57135721
tmp_vec.push_back(ASR::make_Assignment_t(al, x.base.base.loc, target, tmp_value,
57145722
overloaded, false));

0 commit comments

Comments
 (0)