|
|
@@ -6,91 +6,91 @@ import static org.junit.Assert.assertTrue;
|
|
6
|
6
|
|
|
7
|
7
|
public class ClockEqualTest {
|
|
8
|
8
|
|
|
9
|
|
- @Ignore
|
|
|
9
|
+ @Ignore("Remove to run test")
|
|
10
|
10
|
@Test
|
|
11
|
11
|
public void clocksWithSameTimeAreEqual() {
|
|
12
|
12
|
assertTrue(new Clock(15, 37).equals(new Clock(15, 37)));
|
|
13
|
13
|
}
|
|
14
|
14
|
|
|
15
|
|
- @Ignore
|
|
|
15
|
+ @Ignore("Remove to run test")
|
|
16
|
16
|
@Test
|
|
17
|
17
|
public void clocksAMinuteApartAreNotEqual() {
|
|
18
|
18
|
assertFalse(new Clock(15, 36).equals(new Clock(15, 37)));
|
|
19
|
19
|
}
|
|
20
|
20
|
|
|
21
|
|
- @Ignore
|
|
|
21
|
+ @Ignore("Remove to run test")
|
|
22
|
22
|
@Test
|
|
23
|
23
|
public void clocksAnHourApartAreNotEqual() {
|
|
24
|
24
|
assertFalse(new Clock(14, 37).equals(new Clock(15, 37)));
|
|
25
|
25
|
}
|
|
26
|
26
|
|
|
27
|
|
- @Ignore
|
|
|
27
|
+ @Ignore("Remove to run test")
|
|
28
|
28
|
@Test
|
|
29
|
29
|
public void clocksWithHourOverflow() {
|
|
30
|
30
|
assertTrue(new Clock(10, 37).equals(new Clock(34, 37)));
|
|
31
|
31
|
}
|
|
32
|
32
|
|
|
33
|
|
- @Ignore
|
|
|
33
|
+ @Ignore("Remove to run test")
|
|
34
|
34
|
@Test
|
|
35
|
35
|
public void clocksWithHourOverflowBySeveralDays() {
|
|
36
|
36
|
assertTrue(new Clock(3, 11).equals(new Clock(99, 11)));
|
|
37
|
37
|
}
|
|
38
|
38
|
|
|
39
|
|
- @Ignore
|
|
|
39
|
+ @Ignore("Remove to run test")
|
|
40
|
40
|
@Test
|
|
41
|
41
|
public void clocksWithNegateHour() {
|
|
42
|
42
|
assertTrue(new Clock(22, 40).equals(new Clock(-2, 40)));
|
|
43
|
43
|
}
|
|
44
|
44
|
|
|
45
|
|
- @Ignore
|
|
|
45
|
+ @Ignore("Remove to run test")
|
|
46
|
46
|
@Test
|
|
47
|
47
|
public void clocksWithNegativeHourThatWraps() {
|
|
48
|
48
|
assertTrue(new Clock(17, 3).equals(new Clock(-31, 3)));
|
|
49
|
49
|
}
|
|
50
|
50
|
|
|
51
|
|
- @Ignore
|
|
|
51
|
+ @Ignore("Remove to run test")
|
|
52
|
52
|
@Test
|
|
53
|
53
|
public void clocksWithNegativeHourThatWrapsMultipleTimes() {
|
|
54
|
54
|
assertTrue(new Clock(13, 49).equals(new Clock(-83, 49)));
|
|
55
|
55
|
}
|
|
56
|
56
|
|
|
57
|
|
- @Ignore
|
|
|
57
|
+ @Ignore("Remove to run test")
|
|
58
|
58
|
@Test
|
|
59
|
59
|
public void clocksWithMinuteOverflow() {
|
|
60
|
60
|
assertTrue(new Clock(0, 1).equals(new Clock(0, 1441)));
|
|
61
|
61
|
}
|
|
62
|
62
|
|
|
63
|
|
- @Ignore
|
|
|
63
|
+ @Ignore("Remove to run test")
|
|
64
|
64
|
@Test
|
|
65
|
65
|
public void clocksWithMinuteOverflowBySeveralDays() {
|
|
66
|
66
|
assertTrue(new Clock(2, 2).equals(new Clock(2, 4322)));
|
|
67
|
67
|
}
|
|
68
|
68
|
|
|
69
|
|
- @Ignore
|
|
|
69
|
+ @Ignore("Remove to run test")
|
|
70
|
70
|
@Test
|
|
71
|
71
|
public void clocksWithNegativeMinutes() {
|
|
72
|
72
|
assertTrue(new Clock(2, 40).equals(new Clock(3, -20)));
|
|
73
|
73
|
}
|
|
74
|
74
|
|
|
75
|
|
- @Ignore
|
|
|
75
|
+ @Ignore("Remove to run test")
|
|
76
|
76
|
@Test
|
|
77
|
77
|
public void clocksWithNegativeMinutesThatWraps() {
|
|
78
|
78
|
assertTrue(new Clock(4, 10).equals(new Clock(5, -1490)));
|
|
79
|
79
|
}
|
|
80
|
80
|
|
|
81
|
|
- @Ignore
|
|
|
81
|
+ @Ignore("Remove to run test")
|
|
82
|
82
|
@Test
|
|
83
|
83
|
public void clocksWithNegativeMinutesThatWrapsMultipleTimes() {
|
|
84
|
84
|
assertTrue(new Clock(6, 15).equals(new Clock(6, -4305)));
|
|
85
|
85
|
}
|
|
86
|
86
|
|
|
87
|
|
- @Ignore
|
|
|
87
|
+ @Ignore("Remove to run test")
|
|
88
|
88
|
@Test
|
|
89
|
89
|
public void clocksWithNegativeHoursAndMinutes() {
|
|
90
|
90
|
assertTrue(new Clock(7, 32).equals(new Clock(-12, -268)));
|
|
91
|
91
|
}
|
|
92
|
92
|
|
|
93
|
|
- @Ignore
|
|
|
93
|
+ @Ignore("Remove to run test")
|
|
94
|
94
|
@Test
|
|
95
|
95
|
public void clocksWithNegativeHoursAndMinutesThatWrap() {
|
|
96
|
96
|
assertTrue(new Clock(18, 7).equals(new Clock(-54, -11513)));
|