Message399276
RFC 4648 [1] has added a list of encoding test cases -- see section 10 of the RFC. It might be nice to add a test function that is a direct copy of these test cases. This will make conformance to this RFC clearer (actually right now we don't state conformance with 4648 in the docs except for b32 hex encode/decode, but I'm planning to update the docs in a separate issue).
This will also let us easily keep test cases in sync with future updates in the RFC.
The tests are similar to what we already have except our test cases go from '' => 'abc', and their test cases from '' => 'foobar' (by adding a character at a time in succession). [also some of our test cases go from '' to 'abcde', so a bit inconsistent.]
I've confirmed that all of their test cases pass with Python dev branch code.
I can put up a PR if this sounds good.
[1] https://datatracker.ietf.org/doc/html/rfc4648.html |
|
Date |
User |
Action |
Args |
2021-08-09 16:42:51 | andrei.avk | set | recipients:
+ andrei.avk |
2021-08-09 16:42:51 | andrei.avk | set | messageid: <1628527371.14.0.0350168122984.issue44873@roundup.psfhosted.org> |
2021-08-09 16:42:51 | andrei.avk | link | issue44873 messages |
2021-08-09 16:42:50 | andrei.avk | create | |
|