@@ -113,10 +113,10 @@ defmodule Scenic.ColorTest do
113
113
114
114
assert Color . to_hsv ( 0 ) == { :color_hsv , { 0 , 0 , 0 } }
115
115
116
- { :color_hsv , { 0.0 , 0.0 , v } } = Color . to_hsv ( 128 )
116
+ { :color_hsv , { + 0.0 , + 0.0 , v } } = Color . to_hsv ( 128 )
117
117
assert v > 50 && v < 51
118
118
119
- { :color_hsv , { 0.0 , 0.0 , v } } = Color . to_hsv ( { 128 , 200 } )
119
+ { :color_hsv , { + 0.0 , + 0.0 , v } } = Color . to_hsv ( { 128 , 200 } )
120
120
assert v > 50 && v < 51
121
121
122
122
assert Color . to_hsv ( :bisque ) |> Color . to_rgb ( ) == rgb
@@ -130,10 +130,10 @@ defmodule Scenic.ColorTest do
130
130
hsl = Color . to_hsl ( :bisque )
131
131
rgb = Color . to_rgb ( :bisque )
132
132
133
- { :color_hsv , { 0.0 , 0.0 , v } } = Color . to_hsv ( { :color_g , 128 } )
133
+ { :color_hsv , { + 0.0 , + 0.0 , v } } = Color . to_hsv ( { :color_g , 128 } )
134
134
assert v > 50 && v < 51
135
135
136
- { :color_hsv , { 0.0 , 0.0 , v } } = Color . to_hsv ( { :color_ga , { 128 , 200 } } )
136
+ { :color_hsv , { + 0.0 , + 0.0 , v } } = Color . to_hsv ( { :color_ga , { 128 , 200 } } )
137
137
assert v > 50 && v < 51
138
138
139
139
assert Color . to_hsv ( rgb ) |> Color . to_rgb ( ) == rgb
@@ -148,10 +148,10 @@ defmodule Scenic.ColorTest do
148
148
149
149
assert Color . to_hsl ( 0 ) == { :color_hsl , { 0 , 0 , 0 } }
150
150
151
- { :color_hsl , { 0.0 , 0.0 , l } } = Color . to_hsl ( 128 )
151
+ { :color_hsl , { + 0.0 , + 0.0 , l } } = Color . to_hsl ( 128 )
152
152
assert l > 50 && l < 51
153
153
154
- { :color_hsl , { 0.0 , 0.0 , l } } = Color . to_hsl ( { 128 , 200 } )
154
+ { :color_hsl , { + 0.0 , + 0.0 , l } } = Color . to_hsl ( { 128 , 200 } )
155
155
assert l > 50 && l < 51
156
156
157
157
assert Color . to_hsl ( :bisque ) |> Color . to_rgb ( ) == rgb
@@ -164,10 +164,10 @@ defmodule Scenic.ColorTest do
164
164
# from bisque
165
165
rgb = Color . to_rgb ( :bisque )
166
166
167
- { :color_hsl , { 0.0 , 0.0 , l } } = Color . to_hsl ( { :color_g , 128 } )
167
+ { :color_hsl , { + 0.0 , + 0.0 , l } } = Color . to_hsl ( { :color_g , 128 } )
168
168
assert l > 50 && l < 51
169
169
170
- { :color_hsl , { 0.0 , 0.0 , l } } = Color . to_hsl ( { :color_ga , { 128 , 200 } } )
170
+ { :color_hsl , { + 0.0 , + 0.0 , l } } = Color . to_hsl ( { :color_ga , { 128 , 200 } } )
171
171
assert l > 50 && l < 51
172
172
173
173
assert Color . to_hsl ( { :color_rgb , { 0xFF , 0xE4 , 0xC4 } } ) |> Color . to_rgb ( ) == rgb
0 commit comments