From: Barry Warsaw Date: Tue, 2 Dec 1997 00:30:04 +0000 (+0000) Subject: Added strop.split tests when sep is None. X-Git-Tag: v1.5b2~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c99a239f4277b76fcdcc85772847d07fa49cf10a;p=python Added strop.split tests when sep is None. --- diff --git a/Lib/test/test_strop.py b/Lib/test/test_strop.py index 9243ff48ef..a4f18828e7 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: