-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIntToRomanTest.java
More file actions
45 lines (39 loc) · 886 Bytes
/
IntToRomanTest.java
File metadata and controls
45 lines (39 loc) · 886 Bytes
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
import org.junit.Test;
public class IntToRomanTest {
IntToRoman solver = new IntToRoman();
@Test
public void test1(){
int num = 3;
String res = solver.intToRoman(num);
System.out.println(res);
// III
}
@Test
public void test2(){
int num = 4;
String res = solver.intToRoman(num);
System.out.println(res);
// IV
}
@Test
public void test3(){
int num = 9;
String res = solver.intToRoman(num);
System.out.println(res);
// IX
}
@Test
public void test4(){
int num = 58;
String res = solver.intToRoman(num);
System.out.println(res);
// LVIII
}
@Test
public void test5(){
int num = 1994;
String res = solver.intToRoman(num);
System.out.println(res);
// MCMXCIV
}
}