[pypy-commit] pypy default: Also test for split(..., 'one-char').

arigo noreply at buildbot.pypy.org
Fri Jun 20 14:40:25 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r72104:731d6d55509a
Date: 2014-06-20 14:39 +0200
http://bitbucket.org/pypy/pypy/changeset/731d6d55509a/

Log:	Also test for split(..., 'one-char').

diff --git a/rpython/rlib/test/test_rstring.py b/rpython/rlib/test/test_rstring.py
--- a/rpython/rlib/test/test_rstring.py
+++ b/rpython/rlib/test/test_rstring.py
@@ -239,6 +239,7 @@
             res = res and split('a//b//c//d', '//') == ['a', 'b', 'c', 'd']
             res = res and split(' a\ta\na b') == ['a', 'a', 'a', 'b']
             res = res and split('a//b//c//d', '//', 2) == ['a', 'b', 'c//d']
+            res = res and split('abcd,efghi', ',') == ['abcd', 'efghi']
             res = res and split(u'a//b//c//d', u'//') == [u'a', u'b', u'c', u'd']
             res = res and split(u'endcase test', u'test') == [u'endcase ', u'']
             res = res and rsplit('a|b|c|d', '|', 2) == ['a|b', 'c', 'd']


More information about the pypy-commit mailing list