Skip to content

Commit e6f6a2f

Browse files
committed
Ensure polar spaces during roundtrip have undefined hues for achromatic
This changes nothing but simply adds testing to confirm
1 parent 79a2c24 commit e6f6a2f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_roundtrip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ def test_round_trip(self, space):
107107

108108
for c in self.COLORS:
109109
self.assert_round_trip(c, space)
110+
if c._space.is_polar():
111+
hue = c._space.hue_name()
112+
assert math.isnan(c[hue]) is True
110113

111114

112115
class TestRYBRoundTrip(TestRoundTrip):

0 commit comments

Comments
 (0)