Esempio n. 1
0
 @Test
 public void romanNumeral_I_is1() {
   Solution013 solution013 = new Solution013();
   assertEquals(1, solution013.romanToInt("I"));
 }
Esempio n. 2
0
 @Test
 public void romanNumeral_MMXIV_is2014() {
   Solution013 solution013 = new Solution013();
   assertEquals(2014, solution013.romanToInt("MMXIV"));
 }
Esempio n. 3
0
 @Test
 public void romanNumeral_MCMLIV_is1954() {
   Solution013 solution013 = new Solution013();
   assertEquals(1954, solution013.romanToInt("MCMLIV"));
 }
Esempio n. 4
0
 @Test
 public void romanNumeral_MCMXC_is1990() {
   Solution013 solution013 = new Solution013();
   assertEquals(1990, solution013.romanToInt("MCMXC"));
 }
Esempio n. 5
0
 @Test
 public void romanNumeral_X_is10() {
   Solution013 solution013 = new Solution013();
   assertEquals(10, solution013.romanToInt("X"));
 }
Esempio n. 6
0
 @Test
 public void romanNumeral_IX_is9() {
   Solution013 solution013 = new Solution013();
   assertEquals(9, solution013.romanToInt("IX"));
 }
Esempio n. 7
0
 @Test
 public void romanNumeral_VIII_is8() {
   Solution013 solution013 = new Solution013();
   assertEquals(8, solution013.romanToInt("VIII"));
 }
Esempio n. 8
0
 @Test
 public void romanNumeral_V_is5() {
   Solution013 solution013 = new Solution013();
   assertEquals(5, solution013.romanToInt("V"));
 }
Esempio n. 9
0
 @Test
 public void romanNumeral_IV_is4() {
   Solution013 solution013 = new Solution013();
   assertEquals(4, solution013.romanToInt("IV"));
 }