-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
Acronym: New test case for apostrophe #1375
Conversation
The current solution in the Ruby path doesn't account for apostrophes, it is a more rare case for acronyms but an edge case nonetheless.
New test case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a good addition to me. However, please update version so it reads as "1.6.0"
instead.
Corrected to 1.6.0! Thank you. |
My only concern with this would be that since there's already a case for a space and a case for a hyphen, adding a third case doesn't seem to bring a lot of value in my opinion. Adding a second case forces the developer to do more than simply calling .split() with a single delimiter. Once you can do two, adding 3..4.. etc shouldn't be that different. |
I am bring this forward after an issue encountered on the Ruby track. When using the regex |
Thanks @alanvardy for your suggestion! However. Can we keep this on hold? We're in the process of rearranging the Ruby track, and adding Acronym as a core exercise is part of that. We're monitoring how it works. I'll add this issue to the evaluation. That said, I agree with @jpreese that adding one extra case doesn't seem to bring much more value to the goal of the exercise. The extra case for the hyphen makes it clear that a simple |
Absolutely! I perused through an online acronym dictionary and found plenty of hyphens, the occasional apostrophe and no underscores or quotes. I suppose I am thinking of what valid inputs are not covered, rather than being concerned with all inputs. Nonetheless I thank you all for your time and the efforts you are all making! I will keep my fingers crossed for the review. |
@rpottsoh Could this be interesting for other tracks? |
I think this is an interesting edge case to add. In other cases that contain punctuation, the punctuation is essentially "treated" like a space. The There is no reason to rush to merge this. If you would like to wait @F3PiX, that is fine. Just signal when ready. If the group consensus is to close then I wont stand in the way. I'm just a participant here like the rest of you. 😄 |
Thanks all for your thoughts! |
reopening appears to not be possible. The repo that opened this PR has been deleted. |
This is my bad, when Github went down I was trying to create a new repository without success. I deleted a couple of repositories in case I was over a limit. One of those was this fork ;(. Wine and Github don't seem to mix. How can I fix this? |
I am not sure what your options might be. Restoring a deleted branch is documented here and in other places I am sure. Not sure how to restore a deleted repo. In lieu of restoring your fork and restoring the ability to reopen this PR, you are probably faced with opening another PR. @F3PiX closed this PR. I think it could have remained open until it was decided that the change to the test data was truly not desired. I don't fully understand why the activities of the Ruby track are of consequence to what happens in this repo. Tracks are allowed to update their exercise test suites and READMEs when they see fit to do so. |
I don't mind reopening, but it's gone. |
@alanvardy got a little too hasty the other day during the GitHub outage and ended up deleting his fork. He's more than welcome to open another PR. I think there is merit to the case he proposed. |
I'll submit another identical (and less transient!) PR later today and will reference in this thread. Thank you all for all your consideration! |
New PR created! #1377 . |
The current solution for Acronym doesn't account for apostrophes, it is a more rare case for acronyms but an edge case nonetheless. Is this useful?
I added a single test case and incremented the version number.
Thank you!