From 319d9070280e406cab51d573ec60c402086f2a1e Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Wed, 10 Jul 2019 11:09:11 -0500 Subject: [PATCH] Add test for `sliding_window` with much longer window size than iterator --- toolz/tests/test_itertoolz.py | 1 + 1 file changed, 1 insertion(+) diff --git a/toolz/tests/test_itertoolz.py b/toolz/tests/test_itertoolz.py index c9119eea..3444e4b1 100644 --- a/toolz/tests/test_itertoolz.py +++ b/toolz/tests/test_itertoolz.py @@ -304,6 +304,7 @@ def test_sliding_window(): def test_sliding_window_of_short_iterator(): assert list(sliding_window(3, [1, 2])) == [] + assert list(sliding_window(7, [1, 2])) == [] def test_partition():