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

Enhancements to Macro Examples: Unit Tests and Code Organization #2163

Merged
merged 5 commits into from
Sep 20, 2023

Conversation

Matejkob
Copy link
Contributor

@Matejkob Matejkob commented Sep 7, 2023

This PR introduces a set of improvements to the macro examples, including the addition of unit tests, the categorization of macro interfaces, and the restructuring of the directory to make it more accessible and navigable.

Changes:

  • Add Unit Tests to Macro Examples.
  • Categorize Macro Interfaces and Standardize Playground: I've categorized macro interfaces and added MARK comments. This standardization not only cleans up the code but also makes it easier to find your way around.
  • Organize Macro Examples into Type-Specific Directories: To streamline the search process for newcomers, I've restructured macro examples into type-specific directories.

Copy link
Contributor

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Thanks a lot @Matejkob, this makes the examples a lot easier to understand. I’ve got a couple of suggestions, mostly to fix formatting, inline.

@DougGregor I would appreciate if you could take a look at the new test cases to make sure they are actually testing the intended behavior of the macros.

Copy link
Member

@DougGregor DougGregor 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 great, thank you!

@ahoppen
Copy link
Contributor

ahoppen commented Sep 18, 2023

@swift-ci Please test

This commit restructures the macro implementation examples into type-specific directories, streamlining the search process for newcomers and enhancing overall accessibility
This commit extends the categorization to macro interfaces
auto-merge was automatically disabled September 19, 2023 18:45

Head branch was pushed to by a user without write access

@ahoppen
Copy link
Contributor

ahoppen commented Sep 19, 2023

@swift-ci Please test

@Matejkob
Copy link
Contributor Author

I believe something went wrong with Swift Test Windows

@bnbarham
Copy link
Contributor

@swift-ci please test Windows platform

@ahoppen ahoppen merged commit 806c473 into swiftlang:main Sep 20, 2023
3 checks passed
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.

None yet

5 participants