summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1999-06-11 17:51:13 (GMT)
committerBarry Warsaw <barry@python.org>1999-06-11 17:51:13 (GMT)
commit122473fc70ba3c1c5c112b8be78d81a963f3cf6f (patch)
tree0966ee34c527e78929df448f729957bfdc7c799e /Lib
parent8a9514a66015f6f01ee0678707d1668cddfb6e7b (diff)
downloadcpython-122473fc70ba3c1c5c112b8be78d81a963f3cf6f.zip
cpython-122473fc70ba3c1c5c112b8be78d81a963f3cf6f.tar.gz
cpython-122473fc70ba3c1c5c112b8be78d81a963f3cf6f.tar.bz2
Two extra startswith tests
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_string.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py
index 2fa9dd5..73ece8e 100644
--- a/Lib/test/test_string.py
+++ b/Lib/test/test_string.py
@@ -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')