def test_nested_4_with_mode_same_precedence(): input_str = '((2 + 4 * 9) * (6 + 9 * 8 + 6) + 6) + 2 + 4 * 2' assert process_lark.same_precedence_calc(input_str) == 13632
def test_nested_3_with_mode_same_precedence(): input_str = '5 * 9 * (7 * 3 * 3 + 9 * 3 + (8 + 6 * 4))' assert process_lark.same_precedence_calc(input_str) == 12240
def test_nested_2_with_mode_same_precedence(): input_str = '5 + (8 * 3 + 9 + 3 * 4 * 3)' assert process_lark.same_precedence_calc(input_str) == 437
def test_simple_with_mode_same_precedence(): input_str = '1 + 2 * 3 + 4 * 5 + 6' assert process_lark.same_precedence_calc(input_str) == 71
def test_nested_1_with_mode_same_precedence(): input_str = '2 * 3 + (4 * 5)' assert process_lark.same_precedence_calc(input_str) == 26
def test_nested_0_with_mode_same_precedence(): input_str = '1 + (2 * 3) + (4 * (5 + 6))' assert process_lark.same_precedence_calc(input_str) == 51