Skip to content

Commit

Permalink
Add test cases for uncovered branches (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwutingfeng authored Jun 12, 2023
1 parent 6911556 commit 7d71b8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions colorparser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ func TestParseColor(t *testing.T) {
{"rgb(247,179,99)", [4]uint8{247, 179, 99, 255}},
{"rgb(50% 50% 50%)", [4]uint8{128, 128, 128, 255}},
{"rgb(247,179,99,0.37)", [4]uint8{247, 179, 99, 94}},
{"oklab(64.3% 52.6% 40% 2.5%)", [4]uint8{6, 26, 133, 6}},
{"oklch(0.46212, 80.9%, 29.23388, 17.33713)", [4]uint8{214, 206, 150, 69}},
{"hsl(270 0% 50%)", [4]uint8{128, 128, 128, 255}},
{"hwb(0 50% 50%)", [4]uint8{128, 128, 128, 255}},
{"hsv(0 0% 50%)", [4]uint8{128, 128, 128, 255}},
Expand Down

0 comments on commit 7d71b8a

Please sign in to comment.