Skip to content

Commit fbb6074

Browse files
committed
Fix tests
1 parent 734cee7 commit fbb6074

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
@@ -259,6 +259,7 @@ XYZ
259259
Y'CbCr
260260
YCbCr
261261
YCbCr
262+
YPbPr
262263
Yoshi
263264
ZCAM
264265
ZD
@@ -381,6 +382,7 @@ rgb
381382
sCAM
382383
sRGB
383384
sUCS
385+
sYCC
384386
seperable
385387
severities
386388
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)