[pypy-svn] r51301 - pypy/branch/ghop-ropes-classes/pypy/rlib/test
vinogradov at codespeak.net
vinogradov at codespeak.net
Tue Feb 5 19:59:11 CET 2008
Author: vinogradov
Date: Tue Feb 5 19:59:08 2008
New Revision: 51301
Modified:
pypy/branch/ghop-ropes-classes/pypy/rlib/test/test_ropewrapper.py
Log:
Add test for find method
Modified: pypy/branch/ghop-ropes-classes/pypy/rlib/test/test_ropewrapper.py
==============================================================================
--- pypy/branch/ghop-ropes-classes/pypy/rlib/test/test_ropewrapper.py (original)
+++ pypy/branch/ghop-ropes-classes/pypy/rlib/test/test_ropewrapper.py Tue Feb 5 19:59:08 2008
@@ -74,7 +74,14 @@
assert s2.lower() == s1
s3 = self.const("Welcome to PyPy World")
assert s3.swapcase() == self.const("wELCOME TO pYpY wORLD")
+ assert s1.title() == self.const("Hello Python")
+ def test_str_find(self):
+ s1 = self.const("Welcome to PyPy world")
+ assert s1.find("Py") == 11
+ assert s1.find("dd") == -1
+ assert s1.find("py") == -1
+
class AbstractRopeTest(object):
def test_add_long(self):
s1 = self.const("a")
More information about the Pypy-commit
mailing list