diff --git a/test/parser/expression.cpp b/test/parser/expression.cpp index 3931bb7..e3328d0 100644 --- a/test/parser/expression.cpp +++ b/test/parser/expression.cpp @@ -241,6 +241,11 @@ TEST_SUITE("Parser: expression") { {"2 / (5 + 5)", "(2 / (5 + 5))"}, {"-(5 + a)", "(-(5 + a))"}, {"!(true == true)", "(!(true == true))"}, + {"a + add(b * c) + d", "((a + add((b * c))) + d)"}, + {"add(a, b, 1, 2 * 3, 4 + 5, add(6, 7 * 8))", + "add(a, b, 1, (2 * 3), (4 + 5), add(6, (7 * 8)))"}, + {"add(a + b + c * d / f + g)", + "add((((a + b) + ((c * d) / f)) + g))"}, }; for (auto& t : tests) {