From 4052a047ba76cdad9ac3f62c4671ce435acaa0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 9 Aug 2019 13:22:46 +0200 Subject: [PATCH] [poincare] Add test about addMissingParentheses --- poincare/test/parsing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/poincare/test/parsing.cpp b/poincare/test/parsing.cpp index 5f5f53ac0..36af8a1d8 100644 --- a/poincare/test/parsing.cpp +++ b/poincare/test/parsing.cpp @@ -436,4 +436,5 @@ QUIZ_CASE(poincare_parsing_adding_missing_parentheses) { assert_parsed_expression_with_user_parentheses_is("2×-3", Multiplication::Builder(Rational::Builder(2), Parenthesis::Builder(Opposite::Builder(Rational::Builder(3))))); assert_parsed_expression_with_user_parentheses_is("--2", Opposite::Builder(Parenthesis::Builder(Opposite::Builder(Rational::Builder(2))))); assert_parsed_expression_with_user_parentheses_is("\u00122/3\u0013^2", Power::Builder(Parenthesis::Builder(Division::Builder(Rational::Builder(2), Rational::Builder(3))), Rational::Builder(2))); + assert_parsed_expression_with_user_parentheses_is("log(1+-2)", CommonLogarithm::Builder(Addition::Builder(Rational::Builder(1),Parenthesis::Builder(Opposite::Builder(Rational::Builder(2)))))); }