Added test for no reason other than to make sure something worked before suggesting it to someone.

This commit is contained in:
Jeremy Fincher 2003-09-01 05:20:43 +00:00
parent 01adb33deb
commit 1461535b5d
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ class FunctionsTest(unittest.TestCase):
self.assertEqual(list(itersplit([], lambda x: x)), [])
self.assertEqual(list(itersplit(s, lambda c: c.isspace())),
map(list, s.split()))
self.assertEqual(list(itersplit(['foo', 'for', 'bar'], 'for'.__eq__)),
[['foo'], ['bar']])
def testIterableMap(self):
class alist(IterableMap):