diff --git a/src/main/java/com/tf/romanCharConverter/RomanCharConverter.java b/src/main/java/de/tf/romanCharConverter/RomanCharConverter.java similarity index 97% rename from src/main/java/com/tf/romanCharConverter/RomanCharConverter.java rename to src/main/java/de/tf/romanCharConverter/RomanCharConverter.java index ad07382..f945e31 100644 --- a/src/main/java/com/tf/romanCharConverter/RomanCharConverter.java +++ b/src/main/java/de/tf/romanCharConverter/RomanCharConverter.java @@ -1,4 +1,4 @@ -package com.tf.romanCharConverter; +package de.tf.romanCharConverter; import java.util.HashMap; @@ -29,6 +29,7 @@ public class RomanCharConverter { } } + result += this.romanToArabic.get(romanChar); } diff --git a/src/test/java/com/tf/romanCharConverter/RomanCharConverterTest.java b/src/test/java/de/tf/romanCharConverter/RomanCharConverterTest.java similarity index 93% rename from src/test/java/com/tf/romanCharConverter/RomanCharConverterTest.java rename to src/test/java/de/tf/romanCharConverter/RomanCharConverterTest.java index 950c63d..bef8e4a 100644 --- a/src/test/java/com/tf/romanCharConverter/RomanCharConverterTest.java +++ b/src/test/java/de/tf/romanCharConverter/RomanCharConverterTest.java @@ -1,4 +1,4 @@ -package com.tf.romanCharConverter; +package de.tf.romanCharConverter; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -39,7 +39,7 @@ public class RomanCharConverterTest { } @Test - public void givenMultipleRomanSubstractChar_whenConvert_thenArabic(){ + public void givenMultipleRomanSubtractChar_whenConvert_thenArabic(){ assertEquals(4, converter.convert("IV")); assertEquals(9, converter.convert("IX")); assertEquals(40, converter.convert("XL"));