tests: add other calc tests with multiple operators

The order of operators are different from the initial test, so this increases
the code coverage in wee-calc.c.
v2.8-utf8proc
Sébastien Helleu 2020-01-27 20:54:23 +01:00
parent f980820395
commit d91d1ebb8c
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ TEST(CoreCalc, Expression)
/* multiple operators */
WEE_CHECK_CALC("11", "5+2*3");
WEE_CHECK_CALC("11", "2*3+5");
WEE_CHECK_CALC("7", "5+2*3/3");
WEE_CHECK_CALC("7", "2*3/3+5");
/* expressions with decimal numbers */
WEE_CHECK_CALC("12.5", "10.5+2");