Commit 97ae2352 authored by Colin DAMON's avatar Colin DAMON
Browse files

Convert nine

parent 049abcfb
...@@ -22,6 +22,7 @@ public class Numerals { ...@@ -22,6 +22,7 @@ public class Numerals {
conversions.put(1, "I"); conversions.put(1, "I");
conversions.put(4, "IV"); conversions.put(4, "IV");
conversions.put(5, "V"); conversions.put(5, "V");
conversions.put(9, "IX");
return conversions; return conversions;
} }
......
...@@ -35,4 +35,9 @@ class NumeralsTest { ...@@ -35,4 +35,9 @@ class NumeralsTest {
void shouldConvertSixToVI() { void shouldConvertSixToVI() {
assertThat(Numerals.toRoman(6)).isEqualTo("VI"); assertThat(Numerals.toRoman(6)).isEqualTo("VI");
} }
@Test
void shouldConvertNineToIX() {
assertThat(Numerals.toRoman(9)).isEqualTo("IX");
}
} }
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