Skip to content

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

Merged
merged 2 commits into from
Oct 5, 2016
Merged

Added roman-numerals exercise. #39

merged 2 commits into from
Oct 5, 2016

Conversation

cpaulbond
Copy link
Contributor

Let me know if there are any problems!

@kytrinyx
Copy link
Member

@canweriotnow do you have a moment to review this one?

@wobh
Copy link

wobh commented Jul 25, 2016

The example implementation converts 5000 to "MMMMM" which should be invalid. Otherwise it seems to check out.

@kytrinyx
Copy link
Member

;;; roman-numerals.el --- roman-numerals Exercise (exercism)

;;; Commentary:

Copy link
Member

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.

@canweriotnow canweriotnow self-assigned this Oct 3, 2016
@canweriotnow
Copy link
Contributor

I think it's good for now, capping the use case at decoding at 3k works, tests pass. Merging.

@canweriotnow canweriotnow merged commit 3af6278 into exercism:master Oct 5, 2016
@@ -20,6 +20,8 @@
("IV" . 4)
("I" . 1)))
(roman nil))
(if (> value 3000)
Copy link

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.

BNAndras added a commit to BNAndras/exercism-emacs-lisp that referenced this pull request Apr 22, 2024
BNAndras added a commit that referenced this pull request Apr 24, 2024
* Add author from #39

* Sync tests and update stub
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.

5 participants