diff Lib/test/string_tests.py @ 16332:bacbb45fe844 legacy-trunk

Fixed .capitalize() method of Unicode objects to work like the corresponding string method. Added tests for this too. Patch written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
author Marc-André Lemburg <mal@egenix.com>
date Mon, 29 Jan 2001 11:14:16 +0000
parents f16545f58345
children eee67a84e5fa
line wrap: on
line diff
--- a/Lib/test/string_tests.py	Mon Jan 29 09:39:14 2001 +0000
+++ b/Lib/test/string_tests.py	Mon Jan 29 11:14:16 2001 +0000
@@ -53,6 +53,8 @@
 
     test('capitalize', ' hello ', ' hello ')
     test('capitalize', 'hello ', 'Hello ')
+    test('capitalize', 'aaaa', 'Aaaa')
+    test('capitalize', 'AaAa', 'Aaaa')
 
     test('count', 'aaa', 3, 'a')
     test('count', 'aaa', 0, 'b')