]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Two extra startswith tests
authorBarry Warsaw <barry@python.org>
Fri, 11 Jun 1999 17:51:13 +0000 (17:51 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 11 Jun 1999 17:51:13 +0000 (17:51 +0000)
Lib/test/test_string.py

index 2fa9dd57be34b1faf02f080ebe754a7fe5bce0da..73ece8ed2bf1f7296cda832953c9dbe2841a06e2 100644 (file)
@@ -103,6 +103,9 @@ test('startswith', 'hello', 1, 'o', 4)
 test('startswith', 'hello', 0, 'o', 5)
 test('startswith', 'hello', 1, '', 5)
 test('startswith', 'hello', 0, 'lo', 6)
+test('startswith', 'helloworld', 1, 'lowo', 3)
+test('startswith', 'helloworld', 1, 'lowo', 3, 7)
+test('startswith', 'helloworld', 0, 'lowo', 3, 6)
 
 test('endswith', 'hello', 1, 'lo')
 test('endswith', 'hello', 0, 'he')