aboutsummaryrefslogtreecommitdiff
path: root/tests/MathTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/MathTest.php')
-rw-r--r--tests/MathTest.php38
1 files changed, 37 insertions, 1 deletions
diff --git a/tests/MathTest.php b/tests/MathTest.php
index 90cdccf..27817db 100644
--- a/tests/MathTest.php
+++ b/tests/MathTest.php
@@ -50,7 +50,43 @@ class MathTest extends \PHPUnit\Framework\TestCase
['4*-5'],
['4 * -5'],
- [cos(2)],
+ ['abs(1.5)'],
+ ['acos(0.15)'],
+ ['acosh(1.5)'],
+ ['asin(0.15)'],
+ ['atan(0.15)'],
+ ['atan2(1.5, 3.5)'],
+ ['atanh(0.15)'],
+ ['bindec("10101")'],
+ ['ceil(1.5)'],
+ ['cos(1.5)'],
+ ['cosh(1.5)'],
+ ['decbin("15")'],
+ ['dechex("15")'],
+ ['decoct("15")'],
+ ['deg2rad(1.5)'],
+ ['exp(1.5)'],
+ ['expm1(1.5)'],
+ ['floor(1.5)'],
+ ['fmod(1.5, 3.5)'],
+ ['hexdec("abcdef")'],
+ ['hypot(1.5, 3.5)'],
+ ['intdiv(10, 2)'],
+ ['log(1.5)'],
+ ['log10(1.5)'],
+ ['log1p(1.5)'],
+ ['max(1.5, 3.5)'],
+ ['min(1.5, 3.5)'],
+ ['octdec(1.5)'],
+ ['pi()'],
+ ['pow(1.5, 3.5)'],
+ ['rad2deg(1.5)'],
+ ['round(1.5)'],
+ ['sin(1.5)'],
+ ['sinh(1.5)'],
+ ['sqrt(1.5)'],
+ ['tan(1.5)'],
+ ['tanh(1.5)'],
['0.1 + 0.2'],
['1 + 2'],