diff options
author | Guido van Rossum <guido@python.org> | 2000-12-19 02:22:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-12-19 02:22:31 (GMT) |
commit | 8b264542734e8e66bfe1153dfd0e9e92e7a5d636 (patch) | |
tree | a22f0f0136d36e920024e16b763c876cff3437ec /Lib | |
parent | fb10c3f6645cab80b95e52ae76297616dcb6ec64 (diff) | |
download | cpython-8b264542734e8e66bfe1153dfd0e9e92e7a5d636.zip cpython-8b264542734e8e66bfe1153dfd0e9e92e7a5d636.tar.gz cpython-8b264542734e8e66bfe1153dfd0e9e92e7a5d636.tar.bz2 |
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
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicode.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 5f79101..05aecd8 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -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: |