diff options
author | Raymond Hettinger <python@rcn.com> | 2009-02-14 04:21:49 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-02-14 04:21:49 (GMT) |
commit | 9e8dbbcdcd462efc8f50008c7182dd399de89097 (patch) | |
tree | 205c44bc862e68369139148a4309c72d2598ca4b /Lib/test | |
parent | 8c20189ce4bb26b18306a7b5fc05db62cf6e9a11 (diff) | |
download | cpython-9e8dbbcdcd462efc8f50008c7182dd399de89097.zip cpython-9e8dbbcdcd462efc8f50008c7182dd399de89097.tar.gz cpython-9e8dbbcdcd462efc8f50008c7182dd399de89097.tar.bz2 |
Add keyword argument support to itertools.count().
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_itertools.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 31ef2e1..812a1ef 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -355,6 +355,7 @@ class TestBasicOps(unittest.TestCase): self.assertEqual(lzip('abc',count(2,3)), [('a', 2), ('b', 5), ('c', 8)]) self.assertEqual(lzip('abc',count(2,0)), [('a', 2), ('b', 2), ('c', 2)]) self.assertEqual(lzip('abc',count(2,1)), [('a', 2), ('b', 3), ('c', 4)]) + self.assertEqual(lzip('abc',count(2,3)), [('a', 2), ('b', 5), ('c', 8)]) self.assertEqual(take(20, count(maxsize-15, 3)), take(20, range(maxsize-15, maxsize+100, 3))) self.assertEqual(take(20, count(-maxsize-15, 3)), take(20, range(-maxsize-15,-maxsize+100, 3))) self.assertEqual(take(3, count(2, 3.25-4j)), [2, 5.25-4j, 8.5-8j]) |