diff options
-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') |