-
-
Notifications
You must be signed in to change notification settings - Fork 45
Added roman-numerals exercise. #39
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
Conversation
@canweriotnow do you have a moment to review this one? |
The example implementation converts 5000 to "MMMMM" which should be invalid. Otherwise it seems to check out. |
Do we need to add a case to https://github.com/exercism/x-common/blob/master/roman-numerals.json? |
;;; roman-numerals.el --- roman-numerals Exercise (exercism) | ||
|
||
;;; Commentary: | ||
|
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.
Personally, I prefer when
over single branch if
.
I think it's good for now, capping the use case at decoding at 3k works, tests pass. Merging. |
@@ -20,6 +20,8 @@ | |||
("IV" . 4) | |||
("I" . 1))) | |||
(roman nil)) | |||
(if (> value 3000) |
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.
Why 3000? You can make Roman numerals up through 4999.
* Add author from #39 * Sync tests and update stub
Let me know if there are any problems!