mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Add tests for 4-bit RLE decoder
This commit is contained in:
parent
70e3e4fb10
commit
c2e9c66fcd
BIN
Tests/images/hopper_4bit.bmp
Normal file
BIN
Tests/images/hopper_4bit.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
BIN
Tests/images/hopper_rle4.bmp
Normal file
BIN
Tests/images/hopper_rle4.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
|
@ -175,6 +175,13 @@ def test_rle8():
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
im.load()
|
im.load()
|
||||||
|
|
||||||
|
def test_rle4():
|
||||||
|
with Image.open("Tests/images/hopper_rle4.bmp") as im:
|
||||||
|
assert_image_similar_tofile(im, "Tests/images/hopper_4bit.bmp", 12)
|
||||||
|
|
||||||
|
with Image.open("Tests/images/bmp/g/pal4rle.bmp") as im:
|
||||||
|
assert_image_similar_tofile(im, "Tests/images/bmp/g/pal4.bmp", 12)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"file_name,length",
|
"file_name,length",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user