Skip to content

Add more tests for bsn! macro features#23611

Merged
alice-i-cecile merged 2 commits intobevyengine:mainfrom
alice-i-cecile:closure-bsn-tests
Mar 31, 2026
Merged

Add more tests for bsn! macro features#23611
alice-i-cecile merged 2 commits intobevyengine:mainfrom
alice-i-cecile:closure-bsn-tests

Conversation

@alice-i-cecile
Copy link
Copy Markdown
Member

Objective

While writing docs in #23604, I was wondering if closures and comments worked, especially after @urben1680's review comments.

It's not immediately obvious that they should, and it's easy to break macros and parsing.

Solution

Add some simple tests to verify that this does in fact work!

@alice-i-cecile alice-i-cecile requested review from cart and kfc35 March 31, 2026 22:12
@alice-i-cecile alice-i-cecile added D-Trivial Nice and easy! A great choice to get started with Bevy C-Code-Quality A section of code that is hard to understand or change A-Scenes Composing and serializing ECS objects X-Uncontroversial This work is generally agreed upon S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Mar 31, 2026
@alice-i-cecile alice-i-cecile changed the title Add more test for bsn! macro features Add more tests for bsn! macro features Mar 31, 2026
Copy link
Copy Markdown
Contributor

@ChristopherBiscardi ChristopherBiscardi left a comment

Choose a reason for hiding this comment

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

Tests! yes! and they even pass! 😆

@kfc35 kfc35 added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Mar 31, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Mar 31, 2026
Merged via the queue into bevyengine:main with commit f7fb218 Mar 31, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Scenes Composing and serializing ECS objects C-Code-Quality A section of code that is hard to understand or change D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants