Test invalid input for selem

This commit is contained in:
Johannes Schönberger
2014-05-10 09:44:59 -04:00
parent 69a0255a28
commit e4a60e4bf2
@@ -87,6 +87,14 @@ def test_invalid_seed():
method='erosion')
def test_invalid_selem():
seed = np.ones((5, 5))
mask = np.ones((5, 5))
selem =
assert_raises(ValueError, reconstruction, seed, mask, np.ones((2, 2)))
reconstruction(seed, mask, np.ones((3, 3)))
if __name__ == '__main__':
from numpy import testing
testing.run_module_suite()