[pypy-svn] r51304 - pypy/branch/ghop-ropes-classes/pypy/rlib/test
vinogradov at codespeak.net
vinogradov at codespeak.net
Tue Feb 5 20:19:31 CET 2008
Author: vinogradov
Date: Tue Feb 5 20:19:30 2008
New Revision: 51304
Modified:
pypy/branch/ghop-ropes-classes/pypy/rlib/test/test_ropewrapper.py
Log:
Add more tests to rope 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 20:19:30 2008
@@ -81,6 +81,9 @@
assert s1.find("Py") == 11
assert s1.find("dd") == -1
assert s1.find("py") == -1
+ assert s1.find("Welcome to PyPy world") == 0
+ assert s1.find(s1) == 0
+ py.test.raises(TypeError, s1.find, 4)
class AbstractRopeTest(object):
def test_add_long(self):
More information about the Pypy-commit
mailing list