diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2002-03-29 16:21:44 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2002-03-29 16:21:44 (GMT) |
commit | eddd68d56c1a1492a585b6484148f503f2ce2b03 (patch) | |
tree | 0286cf01ee79a0d79f0eb3c8900668050ce32a1d /Lib/test/test_unicode.py | |
parent | 102d1208a8dcf9a502a8720fe5642ee33520d84f (diff) | |
download | cpython-eddd68d56c1a1492a585b6484148f503f2ce2b03.zip cpython-eddd68d56c1a1492a585b6484148f503f2ce2b03.tar.gz cpython-eddd68d56c1a1492a585b6484148f503f2ce2b03.tar.bz2 |
As part of fixing bug #536241, add a test case for string.zfill() with Unicode
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index ad47f31..9aa5948 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -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') |