]> granicus.if.org Git - python/commitdiff
Add two tests for string.zfill
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 29 Mar 2002 16:00:13 +0000 (16:00 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 29 Mar 2002 16:00:13 +0000 (16:00 +0000)
Lib/test/string_tests.py

index e207566e6bb403c0af6aab07185e74d816f381d2..4b2f0e316d27cc585ce8401b81c0604b347eeb19 100644 (file)
@@ -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'),