Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow output to be inferred from a section after the example instead of stated explicitly #661

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

jskeet
Copy link
Contributor

@jskeet jskeet commented Oct 31, 2022

This allows us to test that the claimed output in the standard is really the output. In various cases, this wasn't actually the case...

We still need ExpectedOutput at the moment for cases where the standard doesn't have the expected output in a triple-backtick-fenced block, but we could potentially aim to improve that over time.

@RexJaeschke: I've added you to the review list just to make you aware of the functionality :)

@RexJaeschke
Copy link
Contributor

@jskeet. Once this PR has been merged, I'll update the user guide and grammar (in my pending PR) to reflect this new option.

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

This is nice @jskeet

I had one comment that may affect its resilience over time. But it's ready to :shipit:

…of stated explicitly

This allows us to test that the claimed output in the standard is *really* the output. In various cases, this wasn't actually the case...

We still need ExpectedOutput at the moment for cases where the standard doesn't have the expected output in a triple-backtick-fenced block, but we could potentially aim to improve that over time.
@jskeet jskeet merged commit fa41baa into dotnet:draft-v7 Nov 1, 2022
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.

3 participants