Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct README.md examples and outputs using doctest #351

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pjkundert
Copy link
Contributor

The 'README.md' contains numerous examples and expected outputs, but these don't appear to be regularly tested.

I added the formatting necessary to run "doctest" on the README.md and test the expected outputs. Mostly this was just adding a doctest-terminating blank line after the expected outputs. However, several of the tests showed some differences in output.

Check that these are indeed now correct, and then this should be ready to merge.

I also added instructions on how to run doctest on the README.md.

@astanin
Copy link
Owner

astanin commented Oct 8, 2024

Yeah, you're right. README was supposed to be used in tests, and it was, but probably between migrating from one CI system to another it was forgotten. It would be nice to add it to GitHub actions when all the tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants