From 8504e6ad3520c386f9c645cc4d9cc2de2d3aa58a Mon Sep 17 00:00:00 2001 From: Nandini Anagondi <91892829+naanagon@users.noreply.github.com> Date: Thu, 27 Oct 2022 18:12:57 +0530 Subject: [PATCH] Add test case for RomanToInteger (#3686) --- .../conversions/RomanToIntegerTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/java/com/thealgorithms/conversions/RomanToIntegerTest.java diff --git a/src/test/java/com/thealgorithms/conversions/RomanToIntegerTest.java b/src/test/java/com/thealgorithms/conversions/RomanToIntegerTest.java new file mode 100644 index 00000000..52eda44c --- /dev/null +++ b/src/test/java/com/thealgorithms/conversions/RomanToIntegerTest.java @@ -0,0 +1,14 @@ +package com.thealgorithms.conversions; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class RomanToIntegerTest { + + @Test + public void testRomanToInteger() { + assertEquals(1994, RomanToInteger.romanToInt("MCMXCIV")); + assertEquals(58, RomanToInteger.romanToInt("LVIII")); + } +}