Skip to content

Commit 600dbc4

Browse files
radarhereWildRackoon
authored andcommitted
Updated tests
1 parent 364b58c commit 600dbc4

5 files changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/images/palette_negative.png

47 Bytes
Loading

Tests/images/palette_sepia.png

0 Bytes
Loading

Tests/images/palette_wedge.png

36 Bytes
Loading

Tests/test_image_entropy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def entropy(mode: str) -> float:
1111
assert round(abs(entropy("L") - 7.063008716585465), 7) == 0
1212
assert round(abs(entropy("I") - 7.063008716585465), 7) == 0
1313
assert round(abs(entropy("F") - 7.063008716585465), 7) == 0
14-
assert round(abs(entropy("P") - 5.082506854662517), 7) == 0
14+
assert round(abs(entropy("P") - 5.085630558679487), 7) == 0
1515
assert round(abs(entropy("RGB") - 8.821286587714319), 7) == 0
1616
assert round(abs(entropy("RGBA") - 7.42724306524488), 7) == 0
1717
assert round(abs(entropy("CMYK") - 7.4272430652448795), 7) == 0

Tests/test_image_histogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def histogram(mode: str) -> tuple[int, int, int]:
1414
assert histogram("La") == (512, 0, 16384)
1515
assert histogram("I") == (256, 0, 662)
1616
assert histogram("F") == (256, 0, 662)
17-
assert histogram("P") == (256, 0, 1551)
17+
assert histogram("P") == (256, 0, 1557)
1818
assert histogram("PA") == (512, 0, 16384)
1919
assert histogram("RGB") == (768, 4, 675)
2020
assert histogram("RGBA") == (1024, 0, 16384)

0 commit comments

Comments
 (0)