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.
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.