Skip to content

Commit 32c345f

Browse files
committed
Update test_colormap_parse.py
1 parent bed1369 commit 32c345f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_colormap_parse.py

+6
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,15 @@ def test_parse_color_as_numerical_sequence(input_data, expected):
5757
@pytest.mark.parametrize(
5858
"input_data, raises",
5959
[
60+
# larger than 255
6061
((256, 0, 0), ValueError),
62+
# smaller than 0
6163
((0, 0, -1), ValueError),
64+
# sequence too long
6265
((0, 1, 2, 3, 4), ValueError),
66+
# sequence too short
67+
((0, 1), ValueError),
68+
# invalid type in sequence
6369
((0.5, 0.5, 0.5, "string"), TypeError),
6470
],
6571
)

0 commit comments

Comments
 (0)