mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Added explicit tests for issue #23803.
This commit is contained in:
commit
1b74d630da
1 changed files with 2 additions and 0 deletions
|
@ -404,6 +404,7 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
def test_partition(self):
|
||||
string_tests.MixinStrUnicodeUserStringTest.test_partition(self)
|
||||
# test mixed kinds
|
||||
self.checkequal(('ABCDEFGH', '', ''), 'ABCDEFGH', 'partition', '\u4200')
|
||||
for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'):
|
||||
left *= 9
|
||||
right *= 9
|
||||
|
@ -420,6 +421,7 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
def test_rpartition(self):
|
||||
string_tests.MixinStrUnicodeUserStringTest.test_rpartition(self)
|
||||
# test mixed kinds
|
||||
self.checkequal(('', '', 'ABCDEFGH'), 'ABCDEFGH', 'rpartition', '\u4200')
|
||||
for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'):
|
||||
left *= 9
|
||||
right *= 9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue