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