diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-01-29 11:14:16 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-01-29 11:14:16 (GMT) |
commit | fde66e1bcc4431a59f36bad0ca0dd7a848ce794b (patch) | |
tree | 6f8050abb89c2c8ad8cec8c24b06b31ee037221d /Lib/test/string_tests.py | |
parent | 30be8708c544f1b6a0ebacf856915830c6b36d39 (diff) | |
download | cpython-fde66e1bcc4431a59f36bad0ca0dd7a848ce794b.zip cpython-fde66e1bcc4431a59f36bad0ca0dd7a848ce794b.tar.gz cpython-fde66e1bcc4431a59f36bad0ca0dd7a848ce794b.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r-- | Lib/test/string_tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index c3010d6..2e912c8 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -53,6 +53,8 @@ def run_method_tests(test): 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') |