mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Added strop.split tests when sep is None.
This commit is contained in:
parent
93be92d309
commit
c99a239f42
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@ test('split', 'this is the split function',
|
|||
['this', 'is', 'the', 'split', 'function'])
|
||||
test('split', 'a|b|c|d', ['a', 'b', 'c', 'd'], '|')
|
||||
test('split', 'a|b|c|d', ['a', 'b', 'c|d'], '|', 2)
|
||||
test('split', 'a b c d', ['a', 'b c d'], None, 1)
|
||||
test('split', 'a b c d', ['a', 'b', 'c d'], None, 2)
|
||||
test('split', 'a b c d', ['a', 'b', 'c', 'd'], None, 3)
|
||||
test('split', 'a b c d', ['a', 'b', 'c', 'd'], None, 4)
|
||||
test('split', 'a b c d', ['a', 'b', 'c', 'd'], None, 0)
|
||||
test('split', 'a b c d', ['a', 'b', 'c d'], None, 2)
|
||||
|
||||
# join now works with any sequence type
|
||||
class Sequence:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue