Commit 668c6aa1 authored by Colin DAMON's avatar Colin DAMON
Browse files

Convert two

parent a5243148
...@@ -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");
}
} }
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