Add two tests for string.zfill

This commit is contained in:
Andrew M. Kuchling 2002-03-29 16:00:13 +00:00
parent 3cef721b61
commit c6c9c4a10f
1 changed files with 3 additions and 0 deletions

View File

@ -215,6 +215,9 @@ def run_method_tests(test):
test('endswith', 'ab', 0, 'ab', 0, 1) test('endswith', 'ab', 0, 'ab', 0, 1)
test('endswith', 'ab', 0, 'ab', 0, 0) test('endswith', 'ab', 0, 'ab', 0, 0)
test('zfill', '34', '34', 1)
test('zfill', '34', '0034', 4)
# Encoding/decoding # Encoding/decoding
codecs = [('rot13', 'uryyb jbeyq'), codecs = [('rot13', 'uryyb jbeyq'),
('base64', 'aGVsbG8gd29ybGQ=\n'), ('base64', 'aGVsbG8gd29ybGQ=\n'),