Skip to content

Commit c6c9c4a

Browse files
committed
Add two tests for string.zfill
1 parent 3cef721 commit c6c9c4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/string_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ def run_method_tests(test):
215215
test('endswith', 'ab', 0, 'ab', 0, 1)
216216
test('endswith', 'ab', 0, 'ab', 0, 0)
217217

218+
test('zfill', '34', '34', 1)
219+
test('zfill', '34', '0034', 4)
220+
218221
# Encoding/decoding
219222
codecs = [('rot13', 'uryyb jbeyq'),
220223
('base64', 'aGVsbG8gd29ybGQ=\n'),

0 commit comments

Comments
 (0)