diff options
author | Barry Warsaw <barry@python.org> | 1997-12-02 00:30:04 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1997-12-02 00:30:04 (GMT) |
commit | c99a239f4277b76fcdcc85772847d07fa49cf10a (patch) | |
tree | 3296bd1849f7259117477980ecdd67dc238b232a /Lib/test/test_strop.py | |
parent | 93be92d30925d2e2d387987e418b083f8bb6e26e (diff) | |
download | cpython-c99a239f4277b76fcdcc85772847d07fa49cf10a.zip cpython-c99a239f4277b76fcdcc85772847d07fa49cf10a.tar.gz cpython-c99a239f4277b76fcdcc85772847d07fa49cf10a.tar.bz2 |
Added strop.split tests when sep is None.
Diffstat (limited to 'Lib/test/test_strop.py')
-rw-r--r-- | Lib/test/test_strop.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_strop.py b/Lib/test/test_strop.py index 9243ff4..a4f1882 100644 --- a/Lib/test/test_strop.py +++ b/Lib/test/test_strop.py @@ -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: |