summaryrefslogtreecommitdiff
path: root/tests/test_parse.py
diff options
context:
space:
mode:
authorTiberiu Danciu <tiberiud99@gmail.com>2019-08-16 20:42:12 +0300
committerTiberiu Danciu <tiberiud99@gmail.com>2019-08-16 20:42:12 +0300
commitfaefccc37dfe5858aaf54e158454fd0d9cbbd1c5 (patch)
tree295c219c8856286a867afc627d04a1c405a0cc37 /tests/test_parse.py
parentb8b263fd9956aef078b8a5c988813c7b911ba477 (diff)
Fixed major flaw in parsing colors.
Diffstat (limited to 'tests/test_parse.py')
-rw-r--r--tests/test_parse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py
index 1a2913a..e971955 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -39,6 +39,9 @@ class TestParse(object):
def test_color(self):
vs = ViewState(raw=b'\xff\x01\n\x91')
assert vs.decode() == 'Color: Salmon'
+
+ vs = ViewState(raw=b'\xff\x01\n\x8d\x01')
+ assert vs.decode() == 'Color: Red'
def test_rgba(self):
vs = ViewState(raw=b'\xff\x01\x09\x10\x20\x30\x40')