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

Add custom matcher for anagram to allow a set or array #365

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BNAndras
Copy link
Member

See https://forum.exercism.org/t/anagram-exercise-instructions-and-tests-dont-align-on-ordering/14816.

The custom matcher makes sure a set or array is returned for the result values. Then we check the results have the expected element count and then compare expected values and results to see if all elements are present.

@BNAndras BNAndras added x:module/practice-exercise Work on Practice Exercises x:rep/tiny Tiny amount of reputation labels Jan 18, 2025
Copy link

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

@BNAndras BNAndras changed the title Add order-insensitive matcher for anagram Add custom matcher for anagram to allow a set or array Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:module/practice-exercise Work on Practice Exercises x:rep/tiny Tiny amount of reputation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant