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, 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…
Reference in New Issue