Fix int/float bug

This commit is contained in:
Dennis Eichhorn 2018-02-23 10:55:35 +01:00 committed by GitHub
parent 59b701a6be
commit 66a5510873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase
self::assertEquals([4, 9, 16], Functions::powerInt([2, 3, 4], 2));
self::assertEquals([8, 27, 64], Functions::powerInt([2, 3, 4], 3));
self::assertEquals([2, 3, 8], Functions::powerInt([4, 9, 16], 1/2), '', 0.0);
self::assertEquals([2, 3, 8], Functions::powerInt([8, 27, 64], 1/3), '', 0.0);
self::assertEquals([2, 3, 8], Functions::powerFloat([4, 9, 16], 1/2), '', 0.0);
self::assertEquals([2, 3, 8], Functions::powerFloat([8, 27, 64], 1/3), '', 0.0);
}
}