aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Wells <bruce.wells@simparel.com>2019-11-27 19:39:51 +0300
committerBruce Wells <bruce.wells@simparel.com>2019-11-27 20:33:50 +0300
commit84f3f967b71fc39bf61be13e46c89158ad0a34a9 (patch)
tree2b01f4b6c9a695da3246eebc4828372abd659d06 /tests
parent44a13487b5a89951d244ab7a5e723cf7ec893a54 (diff)
Update README.md and more function support
Diffstat (limited to 'tests')
-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'],