-
Notifications
You must be signed in to change notification settings - Fork 440
Translate lit_tests/incrParse
with assertIncrementalParse
#1782
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
Translate lit_tests/incrParse
with assertIncrementalParse
#1782
Conversation
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.
Thanks. This is going in a great direction.
|
||
⏩️⏸️}⏪️ | ||
|
||
⏩️func⏸️⏪️ funcKeywordRemoved() { |
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.
assertIncrementalParse
will apply all of these edits concurrently, while lit_tests/incrParse/funcs.swift
specified multiple independent test cases where only a single edit was applied. I would split this case up into multiple assertIncrementalParse
calls where each one only has a single edit.
Same for most of the test cases below. NESTED_INITIALIZERS
performs a multi-edit but I think none of the others do, but please double-check.
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.
If we split these up, do you think should we maintain all other text in in that file? I'm not quite sure how much these context will affect our test.
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.
I would just keep the immediate parent contexts. E.g. here, I would just keep class InvalidFuncDecls {
81c3dfc
to
1044271
Compare
I've also opened a separated pr (#1807) to delete all the old incremental parse test utils and |
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.
One minor comment, otherwise LGTM.
1044271
to
d0fe534
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
This should make it easier to read and run test cases in lit_tests/incrParse with
assertIncrementalParse
.