aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Wells <bruce.wells@simparel.com>2018-11-26 17:25:33 +0300
committerBruce Wells <bruce.wells@simparel.com>2018-11-26 18:01:01 +0300
commit5bdc27efdb50434a6f44a01e158d5e13eff3a020 (patch)
tree221aef8b0d2c57e3cd8eb62d6b25e548279fd48b /tests
parent72aaf58e5530609b826a3615e3b28135c07a0f9e (diff)
Fixed function in () block issue
Diffstat (limited to 'tests')
-rw-r--r--tests/MathTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/MathTest.php b/tests/MathTest.php
index c5dd60d..9acdb63 100644
--- a/tests/MathTest.php
+++ b/tests/MathTest.php
@@ -69,7 +69,21 @@ class MathTest extends \PHPUnit_Framework_TestCase
['(2 + 2)*-2'],
['(2+-2)*2'],
+ ['1 + 2 * 3 / (min(1, 5) + 2 + 1)'],
+ ['1 + 2 * 3 / (min(1, 5) - 2 + 5)'],
+ ['1 + 2 * 3 / (min(1, 5) * 2 + 1)'],
+ ['1 + 2 * 3 / (min(1, 5) / 2 + 1)'],
+ ['1 + 2 * 3 / (min(1, 5) / 2 * 1)'],
+ ['1 + 2 * 3 / (min(1, 5) / 2 / 1)'],
+ ['1 + 2 * 3 / (3 + min(1, 5) + 2 + 1)'],
+ ['1 + 2 * 3 / (3 - min(1, 5) - 2 + 1)'],
+ ['1 + 2 * 3 / (3 * min(1, 5) * 2 + 1)'],
+ ['1 + 2 * 3 / (3 / min(1, 5) / 2 + 1)'],
+
+
['sin(10) * cos(50) / min(10, 20/2)'],
+ ['sin(10) * cos(50) / min(10, (20/2))'],
+ ['sin(10) * cos(50) / min(10, (max(10,20)/2))'],
['100500 * 3.5E5'],
['100500 * 3.5E-5'],