mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
[Test] image array add LA mode test
This commit is contained in:
parent
272588feca
commit
cb42a9383c
|
@ -19,6 +19,7 @@ class TestImageArray(PillowTestCase):
|
|||
# FIXME: wrong?
|
||||
self.assertEqual(test("F"), (3, (100, 128), Image._ENDIAN + 'f4', 51200))
|
||||
|
||||
self.assertEqual(test("LA"), (3, (100, 128, 2), '|u1', 25600))
|
||||
self.assertEqual(test("RGB"), (3, (100, 128, 3), '|u1', 38400))
|
||||
self.assertEqual(test("RGBA"), (3, (100, 128, 4), '|u1', 51200))
|
||||
self.assertEqual(test("RGBX"), (3, (100, 128, 4), '|u1', 51200))
|
||||
|
@ -35,6 +36,7 @@ class TestImageArray(PillowTestCase):
|
|||
self.assertEqual(test("L"), ("L", (128, 100), True))
|
||||
self.assertEqual(test("I"), ("I", (128, 100), True))
|
||||
self.assertEqual(test("F"), ("F", (128, 100), True))
|
||||
self.assertEqual(test("LA"), ("LA", (128, 100), True))
|
||||
self.assertEqual(test("RGB"), ("RGB", (128, 100), True))
|
||||
self.assertEqual(test("RGBA"), ("RGBA", (128, 100), True))
|
||||
self.assertEqual(test("RGBX"), ("RGBA", (128, 100), True))
|
||||
|
|
Loading…
Reference in New Issue
Block a user