Always output HTML colors as hex codes.
This commit is contained in:
parent
8bb383220f
commit
d7485cc746
2 changed files with 23 additions and 27 deletions
|
|
@ -22,5 +22,6 @@ def test_prism():
|
|||
|
||||
@given(sampled_from(first_16_html_colors))
|
||||
def test_color_conversion(color_name):
|
||||
assert color_weechat_to_html(
|
||||
color_html_to_weechat(color_name)) == color_name
|
||||
hex_color = color_weechat_to_html(color_html_to_weechat(color_name))
|
||||
new_color_name = webcolors.hex_to_name(hex_color, spec='html4')
|
||||
assert new_color_name == color_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue