mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 23:27:37 +08:00
Test invalid input for unwrap_phase
This commit is contained in:
@@ -137,5 +137,12 @@ def test_mask():
|
||||
assert_array_almost_equal(image_unwrapped_3d[:, :, -1], image[i, -1])
|
||||
|
||||
|
||||
def test_invalid_input():
|
||||
assert_raises(ValueError, unwrap_phase, np.zeros([]))
|
||||
assert_raises(ValueError, unwrap_phase, np.zeros((1, 1, 1, 1)))
|
||||
assert_raises(ValueError, unwrap_phase, np.zeros((1, 1)), 3 * [False])
|
||||
assert_raises(ValueError, unwrap_phase, np.zeros((1, 1)), 'False')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
run_module_suite()
|
||||
|
||||
Reference in New Issue
Block a user