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

Method test_nonbmp

Lib/test/test_codecs.py:823–827  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

821 self.assertEqual(raw.decode('utf-16be', 'replace'), expected)
822
823 def test_nonbmp(self):
824 self.assertEqual("\U00010203".encode(self.encoding),
825 b'\xd8\x00\xde\x03')
826 self.assertEqual(b'\xd8\x00\xde\x03'.decode(self.encoding),
827 "\U00010203")
828
829class UTF8Test(ReadTest, unittest.TestCase):
830 encoding = "utf-8"

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
encodeMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected