From 58d74b811fc2e6c113852406f7445fb63159a515 Mon Sep 17 00:00:00 2001 From: Jannik Renfordt Date: Mon, 1 Apr 2024 12:45:08 +0200 Subject: [PATCH] Update color test case for Mountain Meadow The test case for color Mountain Meadow in ColorTest.php has been modified. The expected result of the RGBToHSL function was slightly incorrect and has now been updated for the accurate testing. --- tests/ColorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ColorTest.php b/tests/ColorTest.php index 47bba21..3f68dcc 100644 --- a/tests/ColorTest.php +++ b/tests/ColorTest.php @@ -82,7 +82,7 @@ public function testRGBToHSL(): void // Test case 6: Mountain Meadow $rgbColor = [17, 195, 128]; - $expectedResult = [157, 0.87, 0.42]; + $expectedResult = [157, 0.84, 0.42]; $actualResult = Color::RGBToHSL($rgbColor[0], $rgbColor[1], $rgbColor[2]); $this->assertEquals($expectedResult, $actualResult, 'Case 6 failed: Mountain Meadow');