Commit 37ee8c79 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Added explicit tests for issue #23803.

parents 23dfc293 4e9ca433
...@@ -404,6 +404,7 @@ class UnicodeTest(string_tests.CommonTest, ...@@ -404,6 +404,7 @@ class UnicodeTest(string_tests.CommonTest,
def test_partition(self): def test_partition(self):
string_tests.MixinStrUnicodeUserStringTest.test_partition(self) string_tests.MixinStrUnicodeUserStringTest.test_partition(self)
# test mixed kinds # test mixed kinds
self.checkequal(('ABCDEFGH', '', ''), 'ABCDEFGH', 'partition', '\u4200')
for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'): for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'):
left *= 9 left *= 9
right *= 9 right *= 9
...@@ -420,6 +421,7 @@ class UnicodeTest(string_tests.CommonTest, ...@@ -420,6 +421,7 @@ class UnicodeTest(string_tests.CommonTest,
def test_rpartition(self): def test_rpartition(self):
string_tests.MixinStrUnicodeUserStringTest.test_rpartition(self) string_tests.MixinStrUnicodeUserStringTest.test_rpartition(self)
# test mixed kinds # test mixed kinds
self.checkequal(('', '', 'ABCDEFGH'), 'ABCDEFGH', 'rpartition', '\u4200')
for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'): for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'):
left *= 9 left *= 9
right *= 9 right *= 9
......
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