MCPcopy Index your code
hub / github.com/python/cpython / test_casefold

Method test_casefold

Lib/test/test_str.py:921–928  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

919 self.assertEqual('\u2177'.lower(), '\u2177')
920
921 def test_casefold(self):
922 self.assertEqual('hello'.casefold(), 'hello')
923 self.assertEqual('hELlo'.casefold(), 'hello')
924 self.assertEqual('ß'.casefold(), 'ss')
925 self.assertEqual('fi'.casefold(), 'fi')
926 self.assertEqual('\u03a3'.casefold(), '\u03c3')
927 self.assertEqual('A\u0345\u03a3'.casefold(), 'a\u03b9\u03c3')
928 self.assertEqual('\u00b5'.casefold(), '\u03bc')
929
930 def test_upper(self):
931 string_tests.StringLikeTest.test_upper(self)

Callers

nothing calls this directly

Calls 2

casefoldMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected