diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2003-12-23 09:10:16 +0000 |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2003-12-23 09:10:16 +0000 |
commit | 2b8554a1db1cc9edf0e71affceaafcb926baace3 (patch) | |
tree | ff0e9a2aa99525f133b6ec78febcf06b52929b63 /Lib/test/string_tests.py | |
parent | f6c606daab1bd98814e79b9d5097c24a3f69f74a (diff) | |
download | cpython-2b8554a1db1cc9edf0e71affceaafcb926baace3.tar.gz |
Fix unicode.rsplit()'s bug that ignores separater on the end of string when
using specialized splitter for 1 char sep.
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r-- | Lib/test/string_tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index c3e53ad48b..eafc89a294 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -208,6 +208,8 @@ class CommonTest(unittest.TestCase): self.checkequal(['a\x00b', 'c'], 'a\x00b\x00c', 'rsplit', '\x00', 1) self.checkequal(['', ''], 'abcd', 'rsplit', 'abcd') self.checkequal([u'a b', u'c', u'd'], 'a b c d', 'rsplit', u' ', 2) + self.checkequal(['', ' endcase'], '| endcase', 'rsplit', '|') + self.checkequal(['', ' endcase'], 'test endcase', 'rsplit', 'test') def test_strip(self): self.checkequal('hello', ' hello ', 'strip') |