Skip to content

Commit

Permalink
abs
Browse files Browse the repository at this point in the history
  • Loading branch information
timglabisch committed Jun 24, 2018
1 parent 2246614 commit 17574e8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/DecimalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 17574e8

Please sign in to comment.