aboutsummaryrefslogtreecommitdiff
path: root/tests/MathTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/MathTest.php')
-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'],