Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Add doc_comment to test README.md #162

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

Conversation

nicochatzi
Copy link
Contributor

Another one from a suggestion by @Boscop. This adds README's Rust code block as a doctest in lib.rs. doc_comment seems less intrusive than skeptic since it doesn't require a separate build step that generates a temporary file and paste it into a test file. It does have the caveat that if the test fails it looks as if the lib.rs failed. To make it more obvious that a test failure in lib is related to the README, this PR moves plugin_main code into a separate file. Any thoughts?

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

Successfully merging this pull request may close these issues.

1 participant