File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -192,22 +192,15 @@ def test_check_max_window_size():
192192 core .check_window_size (m , max_size = 3 )
193193
194194
195- def test_check_window_size_excl_zone_case1 ():
196- # To ensure warning is raised if there is no subsequence
197- # with non-trivial neighbor
198- T = np .random .rand (64 )
199- m = 60
200-
201- with pytest .warns (UserWarning ):
202- core .check_window_size (m , max_size = len (T ), n = len (T ))
203-
204-
205- def test_check_window_size_excl_zone_case2 ():
195+ def test_check_window_size_excl_zone ():
206196 # To ensure warning is raised if there is at least one subsequence
207197 # that has no non-trivial neighbor
208- T = np .random .rand (64 )
209- m = 48
198+ T = np .random .rand (100 )
199+ m = 70
210200
201+ # For m==70, the `excl_zone` become ceil(m / 4) = 18. For len(T)==100,
202+ # the subsequence that starts at index 15 has no non-trivial neighbor.
203+ # The expectation is that `core.check_window_size` raises warning.
211204 with pytest .warns (UserWarning ):
212205 core .check_window_size (m , max_size = len (T ), n = len (T ))
213206
You can’t perform that action at this time.
0 commit comments