[Python-checkins] r46308 - python/trunk/Lib/test/string_tests.py
andrew.dalke
python-checkins at python.org
Fri May 26 14:31:03 CEST 2006
Author: andrew.dalke
Date: Fri May 26 14:31:00 2006
New Revision: 46308
Modified:
python/trunk/Lib/test/string_tests.py
Log:
Test cases for off-by-one errors in string split with multicharacter pattern.
Modified: python/trunk/Lib/test/string_tests.py
==============================================================================
--- python/trunk/Lib/test/string_tests.py (original)
+++ python/trunk/Lib/test/string_tests.py Fri May 26 14:31:00 2006
@@ -297,6 +297,8 @@
self.checkequal(['aaaa'], 'aaaa', 'split', 'aab')
self.checkequal([''], '', 'split', 'aaa')
self.checkequal(['aa'], 'aa', 'split', 'aaa')
+ self.checkequal(['A', 'bobb'], 'Abbobbbobb', 'split', 'bbobb')
+ self.checkequal(['A', 'B', ''], 'AbbobbBbbobb', 'split', 'bbobb')
self.checkequal(['a']*20, ('aBLAH'*20)[:-4], 'split', 'BLAH')
self.checkequal(['a']*20, ('aBLAH'*20)[:-4], 'split', 'BLAH', 19)
More information about the Python-checkins
mailing list