Skip to content

Commit 8504e6a

Browse files
authored
Add test case for RomanToInteger (TheAlgorithms#3686)
1 parent 23949ca commit 8504e6a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.thealgorithms.conversions;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
import static org.junit.jupiter.api.Assertions.assertEquals;
6+
7+
public class RomanToIntegerTest {
8+
9+
@Test
10+
public void testRomanToInteger() {
11+
assertEquals(1994, RomanToInteger.romanToInt("MCMXCIV"));
12+
assertEquals(58, RomanToInteger.romanToInt("LVIII"));
13+
}
14+
}

0 commit comments

Comments
 (0)