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

Method test_raw_encode

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

Source from the content-addressed store, hash-verified

2636 self.assertEqual(codecs.unicode_escape_decode(b""), ("", 0))
2637
2638 def test_raw_encode(self):
2639 encode = codecs.unicode_escape_encode
2640 for b in range(32, 127):
2641 if b != b'\\'[0]:
2642 self.assertEqual(encode(chr(b)), (bytes([b]), 1))
2643
2644 def test_raw_decode(self):
2645 decode = codecs.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