Skip to content

Commit 01892e8

Browse files
committed
itertools: Add basic test.
1 parent 50f37fe commit 01892e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

itertools/test_itertools.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import itertools
2+
3+
print(list(itertools.islice(list(range(10)), 4)))
4+
print(list(itertools.islice(list(range(10)), 2, 6)))
5+
print(list(itertools.islice(list(range(10)), 2, 6, 2)))

0 commit comments

Comments
 (0)