MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_casefold

Method test_casefold

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

Source from the content-addressed store, hash-verified

913 self.assertEqual('\u2177'.lower(), '\u2177')
914
915 def test_casefold(self):
916 self.assertEqual('hello'.casefold(), 'hello')
917 self.assertEqual('hELlo'.casefold(), 'hello')
918 self.assertEqual('ß'.casefold(), 'ss')
919 self.assertEqual('fi'.casefold(), 'fi')
920 self.assertEqual('\u03a3'.casefold(), '\u03c3')
921 self.assertEqual('A\u0345\u03a3'.casefold(), 'a\u03b9\u03c3')
922 self.assertEqual('\u00b5'.casefold(), '\u03bc')
923
924 def test_upper(self):
925 string_tests.StringLikeTest.test_upper(self)

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
casefoldMethod · 0.45

Tested by

no test coverage detected