mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
color inverse test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user