Skip to content

fix: branch result handling and strengthen tests#299

Open
mdqst wants to merge 1 commit intocamshaft:masterfrom
mdqst:patch-1
Open

fix: branch result handling and strengthen tests#299
mdqst wants to merge 1 commit intocamshaft:masterfrom
mdqst:patch-1

Conversation

@mdqst
Copy link
Copy Markdown

@mdqst mdqst commented Sep 22, 2025

updated the logic inside for_each to actually store the result of branches(x) in result.
added assert_eq! checks to make sure the function behaves correctly for all random inputs.

p.s. previously, the function was called but its output wasn't verified, so tests could pass even if the logic was wrong.
now the behavior is properly validated.

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.

1 participant