-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathProblem6Test.java
More file actions
62 lines (40 loc) · 1.36 KB
/
Problem6Test.java
File metadata and controls
62 lines (40 loc) · 1.36 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
package io.zipcoder;
import org.junit.Assert;
import org.junit.Test;
public class Problem6Test {
@Test
public void test1() {
Problem6 test = new Problem6();
String expected = "Thirteen Hundred and Thirty Hours";
String actual = test.breakInput("01:30pm").toString();
Assert.assertEquals(expected, actual);
}
@Test
public void test2() {
Problem6 test = new Problem6();
String expected = "Zero One Hundred and Thirty Hours";
String actual = test.breakInput("01:30am").toString();
Assert.assertEquals(expected, actual);
}
@Test
public void test3(){
Problem6 test = new Problem6();
String expected = "Fourteen Hundred and Twenty Two Hours";
String actual = test.breakInput("02:22pm").toString();
Assert.assertEquals(expected,actual);
}
@Test
public void test4(){
Problem6 test = new Problem6();
String expected = "Zero Two Hundred and Eleven Hours";
String actual = test.breakInput("02:11am").toString();
Assert.assertEquals(expected,actual);
}
@Test
public void test5(){
Problem6 test = new Problem6();
String expected = "Ten Hundred and Zero Two Hours";
String actual = test.breakInput("10:02am").toString();
Assert.assertEquals(expected,actual);
}
}