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

Method test_bmp_characters

Lib/test/test_ucn.py:138–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 self.checkletter("nushu character-1b2fb", "\U0001b2fb")
137
138 def test_bmp_characters(self):
139 for code in range(0x10000):
140 char = chr(code)
141 name = unicodedata.name(char, None)
142 if name is not None:
143 self.assertEqual(unicodedata.lookup(name), char)
144
145 def test_misc_symbols(self):
146 self.checkletter("PILCROW SIGN", "\u00b6")

Callers

nothing calls this directly

Calls 3

nameMethod · 0.45
assertEqualMethod · 0.45
lookupMethod · 0.45

Tested by

no test coverage detected