Commit d455eb4a authored by Colin DAMON's avatar Colin DAMON

Convert ten

parent 97ae2352
......@@ -23,6 +23,7 @@ public class Numerals {
conversions.put(4, "IV");
conversions.put(5, "V");
conversions.put(9, "IX");
conversions.put(10, "X");
return conversions;
}
......
......@@ -40,4 +40,9 @@ class NumeralsTest {
void shouldConvertNineToIX() {
assertThat(Numerals.toRoman(9)).isEqualTo("IX");
}
@Test
void shouldConvertTenToX() {
assertThat(Numerals.toRoman(10)).isEqualTo("X");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment