Update of /cvsroot/python/python/dist/src/Lib/test In directory usw-pr-cvs1:/tmp/cvs-serv19823 Modified Files: test_unicode.py Log Message: As part of fixing bug #536241, add a test case for string.zfill() with Unicode Index: test_unicode.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode.py,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** test_unicode.py 21 Mar 2002 08:55:27 -0000 1.50 --- test_unicode.py 29 Mar 2002 16:21:44 -0000 1.51 *************** *** 7,11 **** """#" from test_support import verify, verbose, TestFailed ! import sys if not sys.platform.startswith('java'): --- 7,11 ---- """#" from test_support import verify, verbose, TestFailed ! import sys, string if not sys.platform.startswith('java'): *************** *** 206,209 **** --- 206,212 ---- test('capwords', u'abc\tdef\nghi', u'Abc Def Ghi') test('capwords', u'abc\t def \nghi', u'Abc Def Ghi') + + verify(string.zfill(u'34', 1) == u'34') + verify(string.zfill(u'34', 5) == u'00034') # Comparisons:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4