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

Method test_cjk_unified_ideographs

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

Source from the content-addressed store, hash-verified

94 self.assertRaises(ValueError, unicodedata.name, "\ud7a4")
95
96 def test_cjk_unified_ideographs(self):
97 self.checkletter("CJK UNIFIED IDEOGRAPH-3400", "\u3400")
98 self.checkletter("CJK UNIFIED IDEOGRAPH-4DB5", "\u4db5")
99 self.checkletter("CJK UNIFIED IDEOGRAPH-4E00", "\u4e00")
100 self.checkletter("CJK UNIFIED IDEOGRAPH-9FCB", "\u9fCB")
101 self.checkletter("CJK UNIFIED IDEOGRAPH-20000", "\U00020000")
102 self.checkletter("CJK UNIFIED IDEOGRAPH-2A6D6", "\U0002a6d6")
103 self.checkletter("CJK UNIFIED IDEOGRAPH-2A700", "\U0002A700")
104 self.checkletter("CJK UNIFIED IDEOGRAPH-2B734", "\U0002B734")
105 self.checkletter("CJK UNIFIED IDEOGRAPH-2B740", "\U0002B740")
106 self.checkletter("CJK UNIFIED IDEOGRAPH-2B81D", "\U0002B81D")
107 self.checkletter("CJK UNIFIED IDEOGRAPH-3134A", "\U0003134A")
108
109 self.checkletter("cjK UniFIeD idEogRAph-3aBc", "\u3abc")
110 self.checkletter("CJk uNIfiEd IDeOGraPH-3AbC", "\u3abc")
111 self.checkletter("cjK UniFIeD idEogRAph-2aBcD", "\U0002abcd")
112 self.checkletter("CJk uNIfiEd IDeOGraPH-2AbCd", "\U0002abcd")
113
114 def test_tangut_ideographs(self):
115 self.checkletter("TANGUT IDEOGRAPH-17000", "\U00017000")

Callers

nothing calls this directly

Calls 1

checkletterMethod · 0.95

Tested by

no test coverage detected