mirror of
https://github.com/python/cpython.git
synced 2025-11-07 17:12:03 +00:00
Add two tests for string.zfill
This commit is contained in:
parent
3cef721b61
commit
c6c9c4a10f
1 changed files with 3 additions and 0 deletions
|
|
@ -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'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue