Exercise 2 - Roman Numbers

Exercise 2.1

Do you know how to write Roman numbers? If you do, please write a method to convert an Arabic number (integer) in to Roman number (string). If you are not sure how to write Roman numbers, you may check Wikipedia or see this chart. Below table represents Roman symbols for numbers for your reference.

Please implement this method using TDD approach.

Exercise 2.2

You may notice that you have a lot of test scenarios and test cases. Try to implement your tests using data-driven testing technique (i.e. Parameterized in Java or eCATT in ABAP).


Please check out a solution on GitHub repository per below links. See how to trace code changes step-by-step fromĀ this blog.

No Comments

Back to top