mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-09 12:30:07 +08:00
ENH: stricter check on test_const_cval_out_of_range
This commit is contained in:
committed by
Johannes Schönberger
parent
47c0a506bc
commit
3e6a6e37b1
@@ -87,7 +87,7 @@ def test_swirl():
|
||||
def test_const_cval_out_of_range():
|
||||
img = np.random.randn(100, 100)
|
||||
warped = warp(img, AffineTransform(translation=(10, 10)), cval=-10)
|
||||
assert np.any(warped < 0)
|
||||
assert np.sum(warped < 0) == (2 * 100 * 10 - 10 * 10)
|
||||
|
||||
|
||||
def test_warp_identity():
|
||||
|
||||
Reference in New Issue
Block a user