color inverse test

This commit is contained in:
Will McGugan
2022-09-24 09:23:49 +01:00
parent 9e4150de81
commit 3d011f5b92

View File

@@ -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)