-
Notifications
You must be signed in to change notification settings - Fork 440
Enhancements to Macro Examples: Unit Tests and Code Organization #2163
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
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 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.
Examples/Sources/MacroExamples/Implementation/Expression/FontLiteralMacro.swift
Show resolved
Hide resolved
Examples/Tests/MacroExamples/Implementation/ComplexMacros/DictionaryIndirectionMacroTests.swift
Outdated
Show resolved
Hide resolved
Examples/Tests/MacroExamples/Implementation/ComplexMacros/DictionaryIndirectionMacroTests.swift
Outdated
Show resolved
Hide resolved
Examples/Tests/MacroExamples/Implementation/Member/CustomCodableTests.swift
Outdated
Show resolved
Hide resolved
Examples/Tests/MacroExamples/Implementation/Member/MetaEnumMacroTests.swift
Outdated
Show resolved
Hide resolved
Examples/Tests/MacroExamples/Implementation/Peer/AddAsyncMacroTests.swift
Outdated
Show resolved
Hide resolved
Examples/Sources/MacroExamples/Implementation/Expression/FontLiteralMacro.swift
Show resolved
Hide resolved
4cfedda
to
39032ab
Compare
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 great, thank you!
Examples/Sources/MacroExamples/Implementation/Expression/FontLiteralMacro.swift
Show resolved
Hide resolved
@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
Head branch was pushed to by a user without write access
39032ab
to
919ae85
Compare
@swift-ci Please test |
I believe something went wrong with Swift Test Windows |
@swift-ci please test Windows platform |
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:
MARK
comments. This standardization not only cleans up the code but also makes it easier to find your way around.