Update of /cvsroot/jython/jython/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv23147
Modified Files:
test_string.py
Log Message:
Addtional tests for a count bug.
Index: test_string.py
===================================================================
RCS file: /cvsroot/jython/jython/Lib/test/test_string.py,v
retrieving revision 2.1
retrieving revision 2.2
diff -C2 -r2.1 -r2.2
*** test_string.py 2000/09/30 13:33:25 2.1
--- test_string.py 2001/02/04 14:50:54 2.2
***************
*** 210,213 ****
--- 210,222 ----
test('replace', 'one!two!three!', 'one!two!three!', 'x', '@', 2)
+ test('count', 'aaa', 3, 'a')
+ test('count', 'aaa', 2, 'a', 0, 2)
+ test('count', 'ababab', 3, 'ab', 0)
+ test('count', 'ababab', 2, 'ab', 0, 5)
+ test('count', 'ababab', 2, 'ab', 1)
+ test('count', 'ababab', 2, 'ab', 1, 6)
+ test('count', 'ababab', 0, 'abc')
+ test('count', 'ababab', 7, '')
+
string.whitespace
string.lowercase
|