From 13307779d06ae2e6b838c9481a0a8c10a57bc626 Mon Sep 17 00:00:00 2001 From: Mattias Geniar Date: Mon, 11 May 2020 15:13:22 +0200 Subject: [PATCH] some more tests --- tests/PercentageTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/PercentageTest.php b/tests/PercentageTest.php index 948440e..17ae2df 100644 --- a/tests/PercentageTest.php +++ b/tests/PercentageTest.php @@ -15,6 +15,8 @@ public function it_can_calculate_simple_percentage_differences() $this->assertEquals(-20, Percentage::differenceBetween(100, 80)); $this->assertEquals(20, Percentage::absoluteDifferenceBetween(100, 80)); + + $this->assertEquals(-48, round(Percentage::differenceBetween(862, 447), 0)); } /** @test */