added example

This commit is contained in:
Will McGugan 2020-07-10 16:52:01 +01:00
parent 01410131cf
commit 0b3d734d1c
10 changed files with 896 additions and 13 deletions

View file

@ -71,6 +71,13 @@ def test_hash():
assert isinstance(hash(Style()), int)
def test_bool():
assert bool(Style()) is False
assert bool(Style(bold=True)) is True
assert bool(Style(color="red")) is True
assert bool(Style.parse("")) is False
def test_color_property():
assert Style(color="red").color == Color("red", ColorType.STANDARD, 1, None)