Skip to content

Commit 06b9388

Browse files
committed
style: remove the main method
1 parent dc5842e commit 06b9388

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/main/java/com/thealgorithms/conversions/RomanToInteger.java

-5
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,4 @@ public static int romanToInt(String a) {
6161

6262
return sum;
6363
}
64-
65-
public static void main(String[] args) {
66-
int sum = romanToInt("MDCCCIV");
67-
System.out.println(sum);
68-
}
6964
}

src/test/java/com/thealgorithms/conversions/RomanToIntegerTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class RomanToIntegerTest {
1111
public void testRomanToInteger() {
1212
assertEquals(1994, RomanToInteger.romanToInt("MCMXCIV"));
1313
assertEquals(58, RomanToInteger.romanToInt("LVIII"));
14+
assertEquals(1804, RomanToInteger.romanToInt("MDCCCIV"));
1415
}
1516

1617
@Test

0 commit comments

Comments
 (0)