-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Consolidate parse function tests #5039
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
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 have some reservations about how heavily we're leaning on file splits, for reasons I discussed a bit here, but this does make these tests more consistent with the tests we've written more recently.
@@ -8,13 +8,35 @@ | |||
// TIP: To dump output, run: | |||
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/parse/testdata/function/definition/builtin.carbon | |||
|
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.
Why not merge these into definition.carbon
?
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.
Merged.
@@ -8,8 +8,153 @@ | |||
// TIP: To dump output, run: | |||
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/parse/testdata/function/declaration/basic.carbon | |||
|
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.
Should we maybe get rid of the whole declaration
directory, and move this file to function/declaration.carbon
?
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.
Sure, I'd been on the fence about it but not sure we'd have split dirs if we had split files before. Also merged the two extern.carbon's this way.
bb68342
to
24c69f5
Compare
These tests pretty much predate split tests. There are lots of files as a result, and I think consolidation will help (hopefully others agree).