Skip to content

Commit f62441c

Browse files
authored
Merge pull request #455 from eriknw/cytoolz123_sliding_window
Add test for `sliding_window` with much longer window size than iterator
2 parents 4edf149 + 319d907 commit f62441c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

toolz/tests/test_itertoolz.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ def test_sliding_window():
304304

305305
def test_sliding_window_of_short_iterator():
306306
assert list(sliding_window(3, [1, 2])) == []
307+
assert list(sliding_window(7, [1, 2])) == []
307308

308309

309310
def test_partition():

0 commit comments

Comments
 (0)