From cf7a184ba768da7a6cf66ae40002f08179cb21c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Sat, 15 Mar 2014 07:40:39 -0400 Subject: [PATCH] TEST: add test on step --- skimage/util/tests/test_shape.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/skimage/util/tests/test_shape.py b/skimage/util/tests/test_shape.py index 4aea849d..b66ac2e2 100644 --- a/skimage/util/tests/test_shape.py +++ b/skimage/util/tests/test_shape.py @@ -89,6 +89,11 @@ def test_view_as_windows_window_too_large(): view_as_windows(A, (11,)) +@raises(ValueError) +def test_view_as_windows_step_below_one(): + A = np.arange(10) + view_as_windows(A, (11,), step=0.9) + def test_view_as_windows_1D(): A = np.arange(10) window_shape = (3,)