This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author andrei.avk
Recipients andrei.avk
Date 2021-08-09.16:42:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628527371.14.0.0350168122984.issue44873@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-08-09 16:42:51andrei.avksetrecipients: + andrei.avk
2021-08-09 16:42:51andrei.avksetmessageid: <1628527371.14.0.0350168122984.issue44873@roundup.psfhosted.org>
2021-08-09 16:42:51andrei.avklinkissue44873 messages
2021-08-09 16:42:50andrei.avkcreate