Skip to content

Commit

Permalink
Add test for matthewwithanm#1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwithanm committed Apr 22, 2013
1 parent 5e3c05a commit ef07ced
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ def test_resizetofit():
eq_(img.size, (100, 50))


def test_resize_rounding():
"""
Regression test for matthewwithanm/pilkit#1
"""

img = Image.new('RGB', (95, 95))
img = ResizeToFill(28, 28).process(img)
eq_(img.size, (28, 28))


def test_resizetofit_mat():
img = Image.new('RGB', (200, 100))
img = ResizeToFit(100, 100, mat_color=0x000000).process(img)
Expand Down

0 comments on commit ef07ced

Please sign in to comment.