vst-rs icon indicating copy to clipboard operation
vst-rs copied to clipboard

Add doc_comment to test README.md

Open nicochatzi opened this issue 3 years ago • 0 comments

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?

nicochatzi avatar Mar 14 '21 12:03 nicochatzi