mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 16:53:14 +02:00
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.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user