Skip to content

fix crash if submission contains doctest - #203

Merged
senekor merged 2 commits into
mainfrom
senekor/doctest
Jul 29, 2026
Merged

fix crash if submission contains doctest#203
senekor merged 2 commits into
mainfrom
senekor/doctest

Conversation

@senekor

@senekor senekor commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

closes #202

@senekor
senekor requested a review from a team as a code owner July 28, 2026 20:09
@BethanyG

Copy link
Copy Markdown
Member

Just ping me once you get things sorted. If i approve now, you'll just have to ask again if you are making changes. 🙂

@IsaacG

IsaacG commented Jul 28, 2026

Copy link
Copy Markdown
Member

Just ping me once you get things sorted. If i approve now, you'll just have to ask again if you are making changes. 🙂

I don't think approvals get reset on PR changes

@senekor

senekor commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

Not sure what fixed it, I left the code pretty much the same... I just swapped out the example, because I realized we do have an exercise that already contains doctests. I'm planning to add support to extract the test code from doctests (in a later PR).

@senekor
senekor force-pushed the senekor/doctest branch 15 times, most recently from aa1d081 to 63e978a Compare July 29, 2026 11:22
senekor added 2 commits July 29, 2026 13:30
When a doctest is present, cargo emits an additional "report" event. We
shouldn't crash when users submit doctest, so just parse and ignore it.
@senekor
senekor merged commit 4a92f66 into main Jul 29, 2026
1 check passed
@senekor
senekor deleted the senekor/doctest branch July 29, 2026 11:38
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.

Rust track submission fails when solution contains a doctest

3 participants