-
Notifications
You must be signed in to change notification settings - Fork 0
changing constants to all caps #1
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
base: master
Are you sure you want to change the base?
Conversation
roman.py
Outdated
| sys.stdout.write('%s' % ROMAN_DIGIT[base] * quotient) | ||
|
|
||
| get_roman_digit(remainder, base/10) | ||
| get_ROMAN_DIGIT(remainder, base/10) |
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.
looks like you overdid the search and replace here
|
no output at all for inputs under 10. not sure if the problem is with the |
|
don't really like how the |
|
Suggest what unit tests I should do. Not sure how it could be done when the program is recursive. |
|
Once you switch the central function to return value instead of print, you Assert that get_roman_digit(x) == y For a comprehensive set of input/output
|
No description provided.