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 go-counting exercise #134

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

ageron
Copy link
Contributor

@ageron ageron commented Oct 7, 2024

Note: I've had to add temporary workarounds for issues roc-lang/roc#7111 and roc-lang/roc#7144 in the go-counting-test.roc file, to extract the sets from result and expected before comparing them.

Another option would be to return lists instead of sets, but then we would have to sort them before comparing them, which also adds some complexity in the test file. Moreover, I feel like it wouldn't be the proper API for this module (a territory really is a set of intersections, not a list), so we would need to revisit the API later on, once the issues are fixed, and users would get a warning and they would have to update their code.

Copy link
Contributor

@isaacvando isaacvando left a comment

Choose a reason for hiding this comment

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

Nice one!

@isaacvando isaacvando merged commit 2eab518 into exercism:main Oct 9, 2024
4 checks passed
@ageron ageron deleted the add-go-counting branch October 9, 2024 19:30
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.

2 participants