Skip to content

Commit

Permalink
Add test for yellow color conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
strarsis authored Oct 30, 2019
1 parent 2adcf06 commit 9d7cf28
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/colorConvert.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ $blue = [
'G' => 158,
'B' => 204,
];
$yellow = [
'R' => 244,
'G' => 231,
'B' => 15,
];
$black = [
'R' => 0,
'G' => 0,
Expand All @@ -24,10 +29,14 @@ $white = [

// Test cases.
$colorsToConvert = array(
'blue' => [ // rgb(0, 158, 204): Thanks for the example, @strarsis.
'blue' => [ // rgb(0, 158, 204)
'hex' => '009ecc',
'rgb' => $blue,
],
'yellow' => [ // rgb(244, 231, 15)
'hex' => 'f4e70f',
'rgb' => $yellow,
],
'black' => [
'hex' => '000000',
'rgb' => $black,
Expand Down

0 comments on commit 9d7cf28

Please sign in to comment.