Skip to content

Commit

Permalink
Update color test case for Mountain Meadow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
renfordt committed Apr 1, 2024
1 parent 8d0d596 commit 58d74b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ColorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 58d74b8

Please sign in to comment.