-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRomanNumeralTest.java
More file actions
134 lines (106 loc) · 2.87 KB
/
RomanNumeralTest.java
File metadata and controls
134 lines (106 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
package test;
import static org.junit.Assert.fail;
import junit.framework.Assert;
import org.junit.Test;
public class RomanNumeralTest {
// @Test
// public final void testtestframework() {
// Assert.assertEquals(true, true);
// }
@Test
public final void test1IsConvertedIntoI() {
Assert.assertEquals("I", RomanNumeral.convert(1));
}
@Test
public final void test2IsConvertedIntoII() {
Assert.assertEquals("II", RomanNumeral.convert(2));
}
@Test
public final void test3IsConvertedIntoIII() {
Assert.assertEquals("III", RomanNumeral.convert(3));
}
@Test
public final void test4IsConvertedIntoIV() {
Assert.assertEquals("IV", RomanNumeral.convert(4));
}
@Test
public final void test5IsConvertedIntoV() {
Assert.assertEquals("V", RomanNumeral.convert(5));
}
@Test
public final void test6IsConvertedIntoVI() {
Assert.assertEquals("VI", RomanNumeral.convert(6));
}
@Test
public final void test7IsConvertedIntoVII() {
Assert.assertEquals("VII", RomanNumeral.convert(7));
}
@Test
public final void test8IsConvertedIntoVIII() {
Assert.assertEquals("VIII", RomanNumeral.convert(8));
}
@Test
public final void test9IsConvertedIntoIX() {
Assert.assertEquals("IX", RomanNumeral.convert(9));
}
@Test
public final void test10IsConvertedIntoX() {
Assert.assertEquals("X", RomanNumeral.convert(10));
}
@Test
public final void test11IsConvertedIntoXI() {
Assert.assertEquals("XI", RomanNumeral.convert(11));
}
@Test
public final void test14IsConvertedIntoXIV() {
Assert.assertEquals("XIV", RomanNumeral.convert(14));
}
@Test
public final void test19IsConvertedIntoXIX() {
Assert.assertEquals("XIX", RomanNumeral.convert(19));
}
@Test
public final void test15IsConvertedIntoXV() {
Assert.assertEquals("XV", RomanNumeral.convert(15));
}
@Test
public final void test20IsConvertedIntoXX() {
Assert.assertEquals("XX", RomanNumeral.convert(20));
}
@Test
public final void test21sConvertedIntoXXI() {
Assert.assertEquals("XXI", RomanNumeral.convert(21));
}
@Test
public final void test40sConvertedIntoXL() {
Assert.assertEquals("XL", RomanNumeral.convert(40));
}
@Test
public final void test50sConvertedIntoL() {
Assert.assertEquals("L", RomanNumeral.convert(50));
}
@Test
public final void test41sConvertedIntoXLI() {
Assert.assertEquals("XLI", RomanNumeral.convert(41));
}
@Test
public final void test51sConvertedIntoLI() {
Assert.assertEquals("LI", RomanNumeral.convert(51));
}
@Test
public final void test100sConvertedIntoC() {
Assert.assertEquals("C", RomanNumeral.convert(100));
}
@Test
public final void test90sConvertedIntoXC() {
Assert.assertEquals("XC", RomanNumeral.convert(90));
}
@Test
public final void test200sConvertedIntoCC() {
Assert.assertEquals("CC", RomanNumeral.convert(200));
}
@Test
public final void test300sConvertedIntoCCC() {
Assert.assertEquals("CCC", RomanNumeral.convert(300));
}
}