mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Test invalid input
This commit is contained in:
1 parent
0fb48a6153
commit
4ba9eaa98b
1 file changed
+11
@@ -189,6 +189,17 @@ def test_geometric_tform():
|
||||
assert_raises(NotImplementedError, tform.__add__, 0)
|
||||
|
||||
|
||||
def test_invalid_input():
|
||||
assert_raises(ValueError, ProjectiveTransform, np.zeros((2, 3)))
|
||||
assert_raises(ValueError, AffineTransform, np.zeros((2, 3)))
|
||||
assert_raises(ValueError, SimilarityTransform, np.zeros((2, 3)))
|
||||
|
||||
assert_raises(ValueError, AffineTransform,
|
||||
matrix=np.zeros((2, 3)), scale=1)
|
||||
assert_raises(ValueError, SimilarityTransform,
|
||||
matrix=np.zeros((2, 3)), scale=1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from numpy.testing import run_module_suite
|
||||
run_module_suite()
|
||||
Reference in new issue
Block a user