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

Method test_bmp_characters

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

Source from the content-addressed store, hash-verified

104 self.checkletter("CJK UNIFIED IDEOGRAPH-3134A", "\U0003134A")
105
106 def test_bmp_characters(self):
107 for code in range(0x10000):
108 char = chr(code)
109 name = unicodedata.name(char, None)
110 if name is not None:
111 self.assertEqual(unicodedata.lookup(name), char)
112
113 def test_misc_symbols(self):
114 self.checkletter("PILCROW SIGN", "\u00b6")

Callers

nothing calls this directly

Calls 4

chrFunction · 0.85
nameMethod · 0.45
assertEqualMethod · 0.45
lookupMethod · 0.45

Tested by

no test coverage detected