diff --git a/tests/NumbersTest.php b/tests/NumbersTest.php index b21c5ff..6346ab7 100644 --- a/tests/NumbersTest.php +++ b/tests/NumbersTest.php @@ -20,6 +20,13 @@ public function testFormatSuffix() $this->assertEquals('1b', Numbers::humanize(1000000000)); $this->assertEquals('1t', Numbers::humanize(1000000000000)); + $this->assertEquals('-100', Numbers::humanize(-100)); + $this->assertEquals('-1k', Numbers::humanize(-1000)); + $this->assertEquals('-12.5k', Numbers::humanize(-12500)); + $this->assertEquals('-1m', Numbers::humanize(-1000000)); + $this->assertEquals('-1b', Numbers::humanize(-1000000000)); + $this->assertEquals('-1t', Numbers::humanize(-1000000000000)); + $this->assertEquals('100', Numbers::humanize(100, true)); $this->assertEquals('1k', Numbers::humanize(1000, true)); $this->assertEquals('12.5k', Numbers::humanize(12500, true));