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

Consolidate parse function tests #5039

Merged
merged 4 commits into from
Feb 28, 2025
Merged

Conversation

jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Feb 27, 2025

These tests pretty much predate split tests. There are lots of files as a result, and I think consolidation will help (hopefully others agree).

This comment was marked as off-topic.

Copy link
Contributor

@geoffromer geoffromer left a 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

Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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?

Copy link
Contributor Author

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.

@jonmeow jonmeow added this pull request to the merge queue Feb 28, 2025
Merged via the queue into carbon-language:trunk with commit ec58a48 Feb 28, 2025
8 checks passed
@jonmeow jonmeow deleted the fn-parse-tests branch February 28, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants