Added split whitespace checks for characters other than space.

This commit is contained in:
Andrew Dalke 2006-05-26 11:15:22 +00:00
parent 6c433a91d5
commit 03fb444990
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ class CommonTest(unittest.TestCase):
self.checkequal(['a', 'b '], ' a b ', 'split', None, 1)
self.checkequal(['a', 'b c '], ' a b c ', 'split', None, 1)
self.checkequal(['a', 'b', 'c '], ' a b c ', 'split', None, 2)
self.checkequal(['a', 'b'], '\n\ta \t\r b \v ', 'split')
# by a char
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'split', '|')