Skip to content
Snippets Groups Projects
Commit 97ae2352 authored by Colin DAMON's avatar Colin DAMON
Browse files

Convert nine

parent 049abcfb
No related branches found
No related tags found
1 merge request!37Resolve "TCR Roman Numerals"
......@@ -22,6 +22,7 @@ public class Numerals {
conversions.put(1, "I");
conversions.put(4, "IV");
conversions.put(5, "V");
conversions.put(9, "IX");
return conversions;
}
......
......@@ -35,4 +35,9 @@ class NumeralsTest {
void shouldConvertSixToVI() {
assertThat(Numerals.toRoman(6)).isEqualTo("VI");
}
@Test
void shouldConvertNineToIX() {
assertThat(Numerals.toRoman(9)).isEqualTo("IX");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment