As part of fixing bug #536241, add a test case for string.zfill() with Unicode

This commit is contained in:
Andrew M. Kuchling 2002-03-29 16:21:44 +00:00
parent 102d1208a8
commit eddd68d56c

View File

@ -6,7 +6,7 @@ Written by Marc-Andre Lemburg (mal@lemburg.com).
"""#"
from test_support import verify, verbose, TestFailed
import sys
import sys, string
if not sys.platform.startswith('java'):
# Test basic sanity of repr()
@ -206,6 +206,9 @@ if 0:
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:
print 'Testing Unicode comparisons...',
verify(u'abc' == 'abc')