mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
Add two tests for string.zfill
This commit is contained in:
parent
3cef721b61
commit
c6c9c4a10f
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user