File: test_sliding_window.py

package info (click to toggle)
toolz 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 672 kB
  • sloc: python: 5,573; makefile: 136; sh: 2
file content (7 lines) | stat: -rw-r--r-- 117 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
from toolz import sliding_window

seq = range(1000000)


def test_sliding_window():
    list(sliding_window(3, seq))