diff options
author | Thomas Touhey <thomas@touhey.fr> | 2019-05-10 11:40:49 +0200 |
---|---|---|
committer | Thomas Touhey <thomas@touhey.fr> | 2019-05-10 11:40:49 +0200 |
commit | d4c11d05f31c4e28c5af8988cf3e4d2b743de806 (patch) | |
tree | 0adf4c1c5b4d8dd9d9ec3fd978744812cd07ea37 /tests/test_text.py | |
parent | a3a97576e40749ae6ba6cfa1735aa05e63cc2905 (diff) |
Corrected formulas, now passes all tests!
Diffstat (limited to 'tests/test_text.py')
-rwxr-xr-x | tests/test_text.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_text.py b/tests/test_text.py index a923842..eb3d5c3 100755 --- a/tests/test_text.py +++ b/tests/test_text.py @@ -23,9 +23,9 @@ def _deg(value): ('rgba(1,22,242,0.500)', ( 1, 22, 242, 0.50)), ('rbga(5, 7)', ( 5, 0, 7, 1.00)), ('hsl(0, 1,50.0%)', (255, 0, 0, 1.00)), - ('hls(0 / 1 0.5 , 0.2)', (255, 0, 0, 0.20)), + ('hls(0 / 1 0.5 , 0.2)', (255, 255, 255, 0.20)), ('hwb(0 0% 0)', (255, 0, 0, 1.00)), - ('hbw(127 .5)', (128, 255, 142, 1.00)), + ('hbw(127 .5)', ( 0, 128, 15, 1.00)), ('gray(100)', (100, 100, 100, 1.00)), ('gray(100 / 55 %)', (100, 100, 100, 0.55)), ('gray(red( #123456 )/0.2/)', ( 18, 18, 18, 0.20)), @@ -39,8 +39,8 @@ def test_rgba(test_input, expected): ('lighter(50%, hsl(0, 1, 60.0%))', (_deg( 0), 1.00, 1.00, 1.00)), ('saturate(10%, hls(0, 1, 85.0%))', (_deg( 0), 0.95, 1.00, 1.00)), ('desaturate(10%, hls(0, 1, 5%, 0.2))', (_deg( 0), 0.00, 1.00, 0.20)), - ('rgba(255, 0, 0, 20 %)', (_deg( 0), 0.50, 1.00, 0.20)), - ('Y40, 33%, 55%', (_deg(84), 0.15, 0.39, 1.00)), + ('rgba(255, 0, 0, 20 %)', (_deg( 0), 1.00, 0.50, 0.20)), + ('Y40, 33%, 55%', (_deg(84), 0.16, 0.39, 1.00)), )) def test_hsla(test_input, expected): assert Color.from_text(test_input).hsla() == expected |