rlib/unicodedata/test/test_ucd.py::test_code_to_unichr
def test_code_to_unichr():
def f(c):
return ord(code_to_unichr(c)[0])
f1 = compile(f, [int])
got = f1(0x12346)
if MAXUNICODE == 65535:
assert got == 0xd808 # first char of a pair
else:
> assert got == 0x12346
E AssertionError: assert 9030 == 74566
rlib\unicodedata\test\test_ucd.py:39: AssertionError
builder: rpython-win-x86-64 build #404
test: rlib/unicodedata/test/test_ucd/py/test_code_to_unichr