MCPcopy Create free account
hub / github.com/RustPython/RustPython / test_named_sequences_sample

Method test_named_sequences_sample

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

Source from the content-addressed store, hash-verified

159
160 @unittest.expectedFailure # TODO: RUSTPYTHON
161 def test_named_sequences_sample(self):
162 # Check a few named sequences. See #12753.
163 sequences = [
164 ('LATIN SMALL LETTER R WITH TILDE', '\u0072\u0303'),
165 ('TAMIL SYLLABLE SAI', '\u0BB8\u0BC8'),
166 ('TAMIL SYLLABLE MOO', '\u0BAE\u0BCB'),
167 ('TAMIL SYLLABLE NNOO', '\u0BA3\u0BCB'),
168 ('TAMIL CONSONANT KSS', '\u0B95\u0BCD\u0BB7\u0BCD'),
169 ]
170 for seqname, codepoints in sequences:
171 self.assertEqual(unicodedata.lookup(seqname), codepoints)
172 with self.assertRaises(SyntaxError):
173 self.checkletter(seqname, None)
174 with self.assertRaises(KeyError):
175 unicodedata.ucd_3_2_0.lookup(seqname)
176
177 @unittest.expectedFailure # TODO: RUSTPYTHON
178 def test_named_sequences_full(self):

Callers

nothing calls this directly

Calls 4

checkletterMethod · 0.95
assertEqualMethod · 0.45
lookupMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected