Skip to content

Commit

Permalink
Correct expected result in ColorTest
Browse files Browse the repository at this point in the history
The expected result for the color test case involving RGB (0, 0, 255) was incorrect. This has been updated to reflect the accurate expected output. This change ensures the accuracy and reliability of the tests for color conversions.
  • Loading branch information
renfordt committed Mar 31, 2024
1 parent f4f5424 commit 825e71f
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 @@ -214,7 +214,7 @@ public function testCalculateCVH(): void
$this->assertEquals($expectedResult, $actualResult, 'Case 4 failed: Green');

// Test case 5: RGB (0, 0, 255)
$expectedResult = [0, 0, 1.0, 1.0, 240];
$expectedResult = [1, 0, 1.0, 1.0, 240];
$actualResult = Color::calculateCVH(0, 0, 255);
$this->assertEquals($expectedResult, $actualResult, 'Case 5 failed: Blue');
}
Expand Down

0 comments on commit 825e71f

Please sign in to comment.