Added split whitespace checks for characters other than space.
This commit is contained in:
parent
6c433a91d5
commit
03fb444990
|
@ -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', '|')
|
||||
|
|
Loading…
Reference in New Issue