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

Method test_escape_decode

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

Source from the content-addressed store, hash-verified

2809 check('\U0001d120', br'\U0001d120')
2810
2811 def test_escape_decode(self):
2812 decode = codecs.raw_unicode_escape_decode
2813 check = coding_checker(self, decode)
2814 for b in range(256):
2815 if b not in b'uU':
2816 check(b'\\' + bytes([b]), '\\' + chr(b))
2817 check(br"\u20ac", "\u20ac")
2818 check(br"\U0001d120", "\U0001d120")
2819
2820 def test_decode_errors(self):
2821 decode = codecs.raw_unicode_escape_decode

Callers

nothing calls this directly

Calls 3

coding_checkerFunction · 0.85
chrFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected