Commit 03fb4449 authored by Andrew Dalke's avatar Andrew Dalke

Added split whitespace checks for characters other than space.

parent 6c433a91
...@@ -252,6 +252,7 @@ class CommonTest(unittest.TestCase): ...@@ -252,6 +252,7 @@ class CommonTest(unittest.TestCase):
self.checkequal(['a', 'b '], ' a b ', 'split', None, 1) 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, 1)
self.checkequal(['a', 'b', 'c '], ' a b c ', 'split', None, 2) 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 # by a char
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'split', '|') self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'split', '|')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment