Add unit test to catch non-integer output shape bug

This commit is contained in:
Stefan van der Walt
2014-05-06 01:35:23 +02:00
parent 00b4fa45e7
commit 4c7cd9bd65
2 changed files with 11 additions and 5 deletions
+5
View File
@@ -248,5 +248,10 @@ def test_inverse():
assert_array_equal(warp(image, inverse_tform), warp(image, tform.inverse))
def test_slow_warp_nonint_oshape():
image = np.random.random((5, 5))
warp(image, lambda xy: xy, output_shape=(13.1, 19.5))
if __name__ == "__main__":
run_module_suite()