From 57e556e1008ab7c6a14376e85e91111eaff75ba2 Mon Sep 17 00:00:00 2001 From: DerTyp7 Date: Fri, 1 Sep 2023 10:09:31 +0200 Subject: [PATCH] rename package --- .../{com => de}/tf/romanCharConverter/RomanCharConverter.java | 3 ++- .../tf/romanCharConverter/RomanCharConverterTest.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename src/main/java/{com => de}/tf/romanCharConverter/RomanCharConverter.java (97%) rename src/test/java/{com => de}/tf/romanCharConverter/RomanCharConverterTest.java (93%) 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"));