mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Test more split argument combinations:
1) multi-char separator 2) multi-char separator that only occurs at last position 3) all of the above with mixed Unicode and 8-bit-string arguments
This commit is contained in:
parent
fb10c3f664
commit
8b26454273
1 changed files with 7 additions and 0 deletions
|
@ -67,6 +67,13 @@ test('split', u'a b c d', [u'a', u'b', u'c', u'd'], None, 4)
|
|||
test('split', u'a b c d', [u'a b c d'], None, 0)
|
||||
test('split', u'a b c d', [u'a', u'b', u'c d'], None, 2)
|
||||
test('split', u'a b c d ', [u'a', u'b', u'c', u'd'])
|
||||
test('split', u'a//b//c//d', [u'a', u'b', u'c', u'd'], u'//')
|
||||
test('split', u'a//b//c//d', [u'a', u'b', u'c', u'd'], '//')
|
||||
test('split', 'a//b//c//d', [u'a', u'b', u'c', u'd'], u'//')
|
||||
test('split', u'endcase test', [u'endcase ', u''], u'test')
|
||||
test('split', u'endcase test', [u'endcase ', u''], 'test')
|
||||
test('split', 'endcase test', [u'endcase ', u''], u'test')
|
||||
|
||||
|
||||
# join now works with any sequence type
|
||||
class Sequence:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue