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

Method test_raw_decode

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

Source from the content-addressed store, hash-verified

2795 self.assertEqual(encode(chr(b)), (bytes([b]), 1))
2796
2797 def test_raw_decode(self):
2798 decode = codecs.raw_unicode_escape_decode
2799 for b in range(256):
2800 self.assertEqual(decode(bytes([b]) + b'0'), (chr(b) + '0', 2))
2801
2802 def test_escape_encode(self):
2803 encode = codecs.raw_unicode_escape_encode

Callers

nothing calls this directly

Calls 3

chrFunction · 0.85
decodeFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected