-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
doctest! seems to not work any more? #17
Comments
It's not |
Ah right, completely forgot about that. Might be good to re-purpose this ticket into adding a quick note about that in the docs. Or even just use |
Oh good idea! I'll send a fix shortly. |
BurntSushi
added a commit
to BurntSushi/rust-snappy
that referenced
this issue
Mar 7, 2020
It needs `cfg(doctest)`, not `cfg(test)`. See: GuillaumeGomez/doc-comment#17
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the following:
Since my Rust program in my README is invalid, I expected
cargo test
to fail. But instead, it passes and does not seem to run any tests:Did something break this functionality or am I perhaps just doing something wrong?
If I run
cargo expand
, then it shows the macro is still expanding seemingly correctly:If I inline the relevant bits of
cargo expand
intosrc/lib.rs
manually, then the test fails, as I expect:The text was updated successfully, but these errors were encountered: