Skip to content

Commit f4f7c21

Browse files
committed
Fix tests
1 parent ceddff5 commit f4f7c21

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/src/dictionary/en-custom.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ XYZ
250250
Y'CbCr
251251
YCbCr
252252
YCbCr
253+
YPbPr
253254
Yoshi
254255
ZCAM
255256
ZD
@@ -371,6 +372,7 @@ rgb
371372
sCAM
372373
sRGB
373374
sUCS
375+
sYCC
374376
seperable
375377
severities
376378
smoothstep

tests/test_roundtrip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ class Color(Base):
3232
# HCT will actually provide good conversion at about 11 decimal precision,
3333
# but certain spaces have a gamma power function that is less accurate with RGB channels near zero
3434
# (not necessarily near black): Rec. 2020, Rec. 709, etc. HCT, which approximates its inverse transform,
35-
# can emphasizes these cases and fall a little below our target of 6. This is expected.
35+
# can exasperate these cases and fall a little below our target of 6. This is expected.
3636
# To handle this in testing, we can specify more nuanced conditions. Provide the default precision,
3737
# and optional lower precision, and spaces that would trigger this lower precision.
38-
SPACES['hct'] = (10, 4, {'rec709', 'rec2020', 'a98-rgb'})
38+
SPACES['hct'] = (10, 4, {'rec709', 'rec2020', 'a98-rgb', 'ypbpr709', 'ypbpr2020'})
3939

4040
COLORS = [
4141
Color('red'),

0 commit comments

Comments
 (0)