diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-14 18:23:30 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-14 18:23:30 (GMT) |
commit | d5890c8db5ed67d41719543a34b33f6a0e0a6f7f (patch) | |
tree | 9bf92ee63587d31ed44e8a37d90582913d37d95c /Lib | |
parent | 94d5a7174aaa107617b208ebc511a8f360196b1a (diff) | |
download | cpython-d5890c8db5ed67d41719543a34b33f6a0e0a6f7f.zip cpython-d5890c8db5ed67d41719543a34b33f6a0e0a6f7f.tar.gz cpython-d5890c8db5ed67d41719543a34b33f6a0e0a6f7f.tar.bz2 |
add str.casefold() (closes #13752)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicode.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index cc933b6..33d7b35 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -565,6 +565,14 @@ class UnicodeTest(string_tests.CommonTest, self.assertEqual('\U0008fffe'.lower(), '\U0008fffe') self.assertEqual('\u2177'.lower(), '\u2177') + def test_casefold(self): + self.assertEqual('hello'.casefold(), 'hello') + self.assertEqual('hELlo'.casefold(), 'hello') + self.assertEqual('ß'.casefold(), 'ss') + self.assertEqual('fi'.casefold(), 'fi') + self.assertEqual('\u03a3'.casefold(), '\u03c3') + self.assertEqual('A\u0345\u03a3'.casefold(), 'a\u03b9\u03c3') + def test_upper(self): string_tests.CommonTest.test_upper(self) self.assertEqual('\U0001044F'.upper(), '\U00010427') |