Skip to content

hide import statements from doctests - #2166

Open
senekor wants to merge 1 commit into
mainfrom
senekor/pxwzprkkyyxy
Open

hide import statements from doctests#2166
senekor wants to merge 1 commit into
mainfrom
senekor/pxwzprkkyyxy

Conversation

@senekor

@senekor senekor commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

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

  1. https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#hiding-portions-of-the-example

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
@github-actions

Copy link
Copy Markdown
Contributor

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.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

@senekor
senekor requested a review from ellnix July 29, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant