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

Convert six

parent 6d740464
No related branches found
No related tags found
1 merge request!37Resolve "TCR Roman Numerals"
......@@ -3,6 +3,10 @@ package fr.ippon.kata.numeral;
public class Numerals {
public static String toRoman(int arabic) {
if (arabic == 6) {
return "VI";
}
if (arabic == 5) {
return "V";
}
......
......@@ -30,4 +30,9 @@ class NumeralsTest {
void shouldConvertFiveToV() {
assertThat(Numerals.toRoman(5)).isEqualTo("V");
}
@Test
void shouldConvertSixToVI() {
assertThat(Numerals.toRoman(6)).isEqualTo("VI");
}
}
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