From: Andrew M. Kuchling Date: Fri, 29 Mar 2002 16:00:13 +0000 (+0000) Subject: Add two tests for string.zfill X-Git-Tag: v2.3c1~6263 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6c9c4a10f2999a2fbdf1e14a207bc478a296a69;p=thirdparty%2FPython%2Fcpython.git Add two tests for string.zfill --- diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index e207566e6bb4..4b2f0e316d27 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -215,6 +215,9 @@ def run_method_tests(test): test('endswith', 'ab', 0, 'ab', 0, 1) test('endswith', 'ab', 0, 'ab', 0, 0) + test('zfill', '34', '34', 1) + test('zfill', '34', '0034', 4) + # Encoding/decoding codecs = [('rot13', 'uryyb jbeyq'), ('base64', 'aGVsbG8gd29ybGQ=\n'),