Add test case for RomanToInteger (#3686)

This commit is contained in:
Nandini Anagondi
2022-10-27 18:12:57 +05:30
committed by GitHub
parent 23949cac47
commit 8504e6ad35

View File

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