From 3d011f5b92a985dcb88a98be02a2261ba5c38131 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 24 Sep 2022 09:23:49 +0100 Subject: [PATCH] color inverse test --- tests/test_color.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_color.py b/tests/test_color.py index 4a70fd596..105eb8e94 100644 --- a/tests/test_color.py +++ b/tests/test_color.py @@ -205,3 +205,7 @@ def test_rgb_lab_rgb_roundtrip(): assert c_.r == pytest.approx(r, abs=1) assert c_.g == pytest.approx(g, abs=1) assert c_.b == pytest.approx(b, abs=1) + + +def test_inverse(): + assert Color(55, 0, 255, 0.1).inverse == Color(200, 255, 0, 0.1)