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

Method test_raw_encode

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

Source from the content-addressed store, hash-verified

2790 self.assertEqual(codecs.raw_unicode_escape_decode(b""), ("", 0))
2791
2792 def test_raw_encode(self):
2793 encode = codecs.raw_unicode_escape_encode
2794 for b in range(256):
2795 self.assertEqual(encode(chr(b)), (bytes([b]), 1))
2796
2797 def test_raw_decode(self):
2798 decode = codecs.raw_unicode_escape_decode

Callers

nothing calls this directly

Calls 3

chrFunction · 0.85
encodeFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected