More tests

This commit is contained in:
Kovid Goyal 2024-01-14 14:34:37 +05:30
parent b3ca5d51fb
commit 616fcfd201
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -243,6 +243,11 @@ class TestParser(BaseTest):
pb = partial(test_expected, which=which)
pb('ニチ', 'ニチ')
pb('\x84\x85', '\x84\x85')
pb('\x84\x85', '\x84\x85')
pb('\uf4df', '\uf4df')
pb('\uffff', '\uffff')
pb('\0', '\0')
pb(chr(0x10ffff), chr(0x10ffff))
# various invalid input
pb(b'abcd\xf51234', 'abcd\ufffd1234') # bytes > 0xf4
pb(b'abcd\xff1234', 'abcd\ufffd1234') # bytes > 0xf4