You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I quite like the doctests. Or rather that knowing that an example is correct as the code changes.
An alternative could be to move things out to examples.
Activity
NickLarsenNZ commentedon Apr 5, 2024
Could you please provide an example of moving a doctest to a
#[test]?NickLarsenNZ commentedon Apr 16, 2024
Ah, I see. There are some ignored doc-tests.
I quite like the doctests. Or rather that knowing that an example is correct as the code changes.
An alternative could be to move things out to examples.
NickLarsenNZ commentedon Nov 27, 2024
I think we might not need this anymore with Rust 2024 on the horizon, which compiles doc-tests into a single binary: https://doc.rust-lang.org/edition-guide/rust-2024/rustdoc-doctests.html