From 66a5510873f0761a9c1fcd066514b3baa656603f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 23 Feb 2018 10:55:35 +0100 Subject: [PATCH] Fix int/float bug --- tests/Math/Functions/FunctionsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Math/Functions/FunctionsTest.php b/tests/Math/Functions/FunctionsTest.php index ae5f43cb2..7dc9e2aed 100644 --- a/tests/Math/Functions/FunctionsTest.php +++ b/tests/Math/Functions/FunctionsTest.php @@ -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); } }