-
Notifications
You must be signed in to change notification settings - Fork 440
Add some more documentaiton on assertParse
#2236
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
Add some more documentaiton on assertParse
#2236
Conversation
b081d9d
to
6670fb2
Compare
""" | ||
A mutation of the original test case failed to round-trip. | ||
|
||
To debug the failure, add a new `assertParse` test with the mutated source as input. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add this part to additionalInfo
maybe? Or do you think it could be missed if it was after the diff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea 👍🏽
/// subtree of that structure. | ||
/// 5. Mutates the test input by flipping each token's presence (ie. for every | ||
/// token, remove it from the input if it is present in the parsed tree and | ||
/// synthesize a missing tokens into the input) and verifies that this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// synthesize a missing tokens into the input) and verifies that this | |
/// synthesize any missing tokens into the input) and verifies that this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intentionally a
because only a single to ken will be synthesized not all of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
/// 5. Mutates the test input by flipping each token's presence (ie. for every
/// token, either remove it from the input if it is present in the parsed tree or
/// synthesize it if it was missing) and verifies that this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
6b79cf4
to
7f4de92
Compare
@swift-ci Please test |
7f4de92
to
1c852df
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
No description provided.