]> granicus.if.org Git - python/commitdiff
Added split whitespace checks for characters other than space.
authorAndrew Dalke <dalke@dalkescientific.com>
Fri, 26 May 2006 11:15:22 +0000 (11:15 +0000)
committerAndrew Dalke <dalke@dalkescientific.com>
Fri, 26 May 2006 11:15:22 +0000 (11:15 +0000)
Lib/test/string_tests.py

index 8f16f20e56e22473aab5514e820ef1dec8abe1f2..ecc41595a0ea09dc3e50af12d536ec26a187bfa5 100644 (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', '|')