import org.junit.Test;

public class RomanNumeralTest {
    @Test
    public void testRomanToArabic() {
        assert RomanNumeral.romanToArabic("I") == 1;
        assert RomanNumeral.romanToArabic("II") == 2;
        assert RomanNumeral.romanToArabic("III") == 3;
        assert RomanNumeral.romanToArabic("IV") == 4;
        assert RomanNumeral.romanToArabic("V") == 5;
        assert RomanNumeral.romanToArabic("VI") == 6;
        assert RomanNumeral.romanToArabic("VII") == 7;
        assert RomanNumeral.romanToArabic("VIII") == 8;
        assert RomanNumeral.romanToArabic("IX") == 9;
        assert RomanNumeral.romanToArabic("X") == 10;
        assert RomanNumeral.romanToArabic("XI") == 11;
        assert RomanNumeral.romanToArabic("XII") == 12;
        assert RomanNumeral.romanToArabic("XIII") == 13;
        assert RomanNumeral.romanToArabic("XIV") == 14;
        assert RomanNumeral.romanToArabic("XV") == 15;
        assert RomanNumeral.romanToArabic("XVI") == 16;
        assert RomanNumeral.romanToArabic("XVII") == 17;
        assert RomanNumeral.romanToArabic("XVIII") == 18;
        assert RomanNumeral.romanToArabic("XIX") == 19;
        assert RomanNumeral.romanToArabic("XX") == 20;
        assert RomanNumeral.romanToArabic("XXI") == 21;
        assert RomanNumeral.romanToArabic("XXII") == 22;
        assert RomanNumeral.romanToArabic("XXIII") == 23;
        assert RomanNumeral.romanToArabic("XXIV") == 24;
        assert RomanNumeral.romanToArabic("XXV") == 25;
        assert RomanNumeral.romanToArabic("XXVI") == 26;
        assert RomanNumeral.romanToArabic("XXVII") == 27;
        assert RomanNumeral.romanToArabic("XXVIII") == 28;
        assert RomanNumeral.romanToArabic("XXIX") == 29;
        assert RomanNumeral.romanToArabic("XXX") == 30;
        assert RomanNumeral.romanToArabic("XXXI") == 31;
        assert RomanNumeral.romanToArabic("XXXII") == 32;
        assert RomanNumeral.romanToArabic("XXXIII") == 33;
        assert RomanNumeral.romanToArabic("XXXIV") == 34;
        assert RomanNumeral.romanToArabic("XXXV") == 35;
        assert RomanNumeral.romanToArabic("XXXVI") == 36;
        assert RomanNumeral.romanToArabic("XXXVII") == 37;
        assert RomanNumeral.romanToArabic("XXXVIII") == 38;
        assert RomanNumeral.romanToArabic("IXL") == 39;
        assert RomanNumeral.romanToArabic("XL") == 40;
        assert RomanNumeral.romanToArabic("XLI") == 41;
        assert RomanNumeral.romanToArabic("XLII") == 42;
        assert RomanNumeral.romanToArabic("XLIII") == 43;
        assert RomanNumeral.romanToArabic("XLIV") == 44;
        assert RomanNumeral.romanToArabic("XLV") == 45;
        assert RomanNumeral.romanToArabic("XLVI") == 46;
        assert RomanNumeral.romanToArabic("XLVII") == 47;
        assert RomanNumeral.romanToArabic("XLVIII") == 48;
        assert RomanNumeral.romanToArabic("IL") == 49;
        assert RomanNumeral.romanToArabic("L") == 50;
        assert RomanNumeral.romanToArabic("LVII") == 57;
        assert RomanNumeral.romanToArabic("LXIV") == 64;
        assert RomanNumeral.romanToArabic("LXXI") == 71;
        assert RomanNumeral.romanToArabic("LXXVII") == 77;
        assert RomanNumeral.romanToArabic("LXXXIV") == 84;
        assert RomanNumeral.romanToArabic("XCI") == 91;
        assert RomanNumeral.romanToArabic("IC") == 99;
        assert RomanNumeral.romanToArabic("C") == 100;
        assert RomanNumeral.romanToArabic("CI") == 101;
        assert RomanNumeral.romanToArabic("CVIII") == 108;
        assert RomanNumeral.romanToArabic("CXI") == 111;
        assert RomanNumeral.romanToArabic("CXXVIII") == 128;
        assert RomanNumeral.romanToArabic("CXLIV") == 144;
        assert RomanNumeral.romanToArabic("CLXXI") == 171;
    }
}
@@ -3717,19 +3717,631 @@
 I%22) == 171;%0A
+        assert RomanNumeral.romanToArabic(%22MCMXIV%22) == 1914;%0A        assert RomanNumeral.romanToArabic(%22MCMXVIII%22) == 1918;%0A        assert RomanNumeral.romanToArabic(%22MCMXXXIII%22) == 1933;%0A        assert RomanNumeral.romanToArabic(%22MCMXLV%22) == 1945;%0A        assert RomanNumeral.romanToArabic(%22MCMLXVI%22) == 1966;%0A        assert RomanNumeral.romanToArabic(%22MCMLXIX%22) == 1969;%0A        assert RomanNumeral.romanToArabic(%22MXMVII%22) == 1997;%0A        assert RomanNumeral.romanToArabic(%22MM%22) == 2000;%0A        assert RomanNumeral.romanToArabic(%22MMXIV%22) == 2014;%0A        assert RomanNumeral.romanToArabic(%22MMMDLV%22) == 3555;%0A
     %7D%0A%7D

add unit tests for roman numeral challenge