-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConversionTest.java
20 lines (17 loc) · 1.02 KB
/
ConversionTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ConversionTest {
private Conversion conversion = new Conversion();
@Test
public void shouldCovertToRoman() {
assertEquals("solution(1) should equal to I", "I", conversion.solution(1));
assertEquals("solution(4) should equal to IV", "IV", conversion.solution(4));
assertEquals("solution(6) should equal to VI", "VI", conversion.solution(6));
assertEquals("solution(66) should equal to LXVI", "LXVI", conversion.solution(66));
assertEquals("solution(666) should equal to DCLXVI", "DCLXVI", conversion.solution(666));
assertEquals("solution(1000) should equal to M", "M", conversion.solution(1000));
assertEquals("solution(1666) should equal to MDCLXVI", "MDCLXVI", conversion.solution(1666));
assertEquals("solution(1990) should equal to MCMXC", "MCMXC", conversion.solution(1990));
assertEquals("solution(2008) should equal to MMVIII", "MMVIII", conversion.solution(2008));
}
}