fix zero-ing of last n bytes

This commit is contained in:
Kovid Goyal 2024-01-10 22:50:20 +05:30
parent daa169b8ed
commit b28fbf6817
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 26 additions and 21 deletions

View file

@ -189,6 +189,7 @@ class TestParser(BaseTest):
self.ae(expected, actual, msg=f'Failed for {x!r} with {which=}\n{expected!r} !=\n{actual!r}')
for which in (2, 3):
x = partial(t, which=which)
x('2:α3')
x('2:α3:≤4:😸|')
x('abcd1234efgh5678')
x('abc\x1bd1234efgh5678')