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

Convert ten

parent 97ae2352
No related branches found
No related tags found
1 merge request!37Resolve "TCR Roman Numerals"
...@@ -23,6 +23,7 @@ public class Numerals { ...@@ -23,6 +23,7 @@ public class Numerals {
conversions.put(4, "IV"); conversions.put(4, "IV");
conversions.put(5, "V"); conversions.put(5, "V");
conversions.put(9, "IX"); conversions.put(9, "IX");
conversions.put(10, "X");
return conversions; return conversions;
} }
......
...@@ -40,4 +40,9 @@ class NumeralsTest { ...@@ -40,4 +40,9 @@ class NumeralsTest {
void shouldConvertNineToIX() { void shouldConvertNineToIX() {
assertThat(Numerals.toRoman(9)).isEqualTo("IX"); assertThat(Numerals.toRoman(9)).isEqualTo("IX");
} }
@Test
void shouldConvertTenToX() {
assertThat(Numerals.toRoman(10)).isEqualTo("X");
}
} }
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