Skip to content

Commit d061f75

Browse files
committed
fill in missing tests
1 parent 51ef12f commit d061f75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/scenic/primitive/style/paint/color_test.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ defmodule Scenic.Primitive.Style.Paint.ColorTest do
33

44
import Scenic.Primitive.Style.Paint.Color
55

6+
test "to_rgba with numbers" do
7+
assert to_rgba({1,2,3}) == {1,2,3,0xFF}
8+
assert to_rgba({1,2,3,4}) == {1,2,3,4}
9+
end
10+
611
test "to_rgba/1" do
712
assert to_rgba({:transparent, nil}) == to_rgba(:transparent)
813
assert to_rgba({:clear, nil}) == to_rgba(:transparent)

0 commit comments

Comments
 (0)