Add test cases

This commit is contained in:
Colin Leroy-Mira 2023-07-29 16:42:35 +02:00
parent 5718c2b6c9
commit 9e53e23261

View File

@ -40,6 +40,10 @@ class Burkes:
"""
>>> Burkes.get_greyscale(3, 4, 5)
4.185
>>> Burkes.get_greyscale(0, 0, 0)
0.0
>>> Burkes.get_greyscale(255, 255, 255)
255.0
"""
return 0.114 * blue + 0.587 * green + 0.299 * red