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 reverse-string exercise, including support for unicode package #11

Merged
merged 3 commits into from
Aug 25, 2024

Conversation

ageron
Copy link
Contributor

@ageron ageron commented Aug 25, 2024

Add the reverse-string exercise. This involved using the unicode package, which required tweaking generate_macros.j2 to make it possible to add external packages.
Note that there seems to be an issue in the unicode package which makes Grapheme.split fail on empty strings (see #15), so I had to explicitely handle that case separately. Once the issue is resolved, I'll remove this test.
I also included an ASCII-only implementation, which is simpler and doesn't require an external package, but does not support non-ASCII characters.

@ageron ageron force-pushed the add-reverse-string branch from 9c90634 to daee56f Compare August 25, 2024 05:47
@ageron ageron merged commit f6ccae1 into exercism:main Aug 25, 2024
1 check passed
@ageron ageron deleted the add-reverse-string branch August 25, 2024 08:20
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