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

Convert two

parent a5243148
No related branches found
No related tags found
1 merge request!37Resolve "TCR Roman Numerals"
...@@ -7,6 +7,6 @@ public class Numerals { ...@@ -7,6 +7,6 @@ public class Numerals {
return ""; return "";
} }
return "I"; return "I".repeat(arabic);
} }
} }
...@@ -15,4 +15,9 @@ class NumeralsTest { ...@@ -15,4 +15,9 @@ class NumeralsTest {
void shouldConvertOneToI() { void shouldConvertOneToI() {
assertThat(Numerals.toRoman(1)).isEqualTo("I"); assertThat(Numerals.toRoman(1)).isEqualTo("I");
} }
@Test
void shouldConvertTwoToII() {
assertThat(Numerals.toRoman(2)).isEqualTo("II");
}
} }
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