Skip to content

hide import statements from doctests - #2166

Merged
senekor merged 1 commit into
mainfrom
senekor/pxwzprkkyyxy
Aug 4, 2026
Merged

hide import statements from doctests#2166
senekor merged 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

@ellnix ellnix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Sorry for the delay, this slipped through the cracks.

@senekor

senekor commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

No need to apologize, you're a volunteer and there is no rush 😉 Thanks for the review!

@senekor
senekor merged commit afe248a into main Aug 4, 2026
13 checks passed
@senekor
senekor deleted the senekor/pxwzprkkyyxy branch August 4, 2026 10:35
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.

2 participants