diff --git a/tests/test_contrast.py b/tests/test_contrast.py index d6955b1..cba41ac 100644 --- a/tests/test_contrast.py +++ b/tests/test_contrast.py @@ -52,6 +52,8 @@ def color(expr: str) -> tuple: return (0, 0, 0, 0.0) if expr == "black": return (0, 0, 0, 1.0) + if expr == "white": + return (255, 255, 255, 1.0) if expr.startswith("#"): h = expr[1:] if len(expr) == 7 else "".join(c * 2 for c in expr[1:]) return (int(h[0:2], 16), int(h[2:4], 16), int(h[4:6], 16), 1.0)