diff --git a/tests/DecimalTest.php b/tests/DecimalTest.php index 19e8411..827dc01 100644 --- a/tests/DecimalTest.php +++ b/tests/DecimalTest.php @@ -254,7 +254,19 @@ public function testPow() "100000", (string)dec0("10")->pow(dec0("5")) ); + } + public function testAbs() + { + static::assertSame( + "10", + (string)dec("10")->abs() + ); + + static::assertSame( + "10", + (string)dec("-10")->abs() + ); } public function testToDecimal()