hide import statements from doctests - #2166
Conversation
The test runner recently gained the ability to strip hidden lines from extracted test source code just like rustdoc does. [1] Hiding import lines from doctests makes them easier to read when solving exercises in the web editor. [1]: https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#hiding-portions-of-the-example
|
This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested. If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos. For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping |
ellnix
left a comment
There was a problem hiding this comment.
LGTM! Sorry for the delay, this slipped through the cracks.
|
No need to apologize, you're a volunteer and there is no rush 😉 Thanks for the review! |
The test runner recently gained the ability to strip hidden lines from extracted test source code just like rustdoc does.1 Hiding import lines from doctests makes them easier to read when solving exercises in the web editor.
[no important files changed]
Footnotes
https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#hiding-portions-of-the-example ↩