|
|
|
|
|
|
18
|
assertEquals(Relationship.EQUAL, computedRelationship);
|
18
|
assertEquals(Relationship.EQUAL, computedRelationship);
|
|
19
|
}
|
19
|
}
|
|
20
|
|
20
|
|
|
21
|
- @Ignore
|
|
|
|
|
|
21
|
+ @Ignore("Remove to run test")
|
|
22
|
@Test
|
22
|
@Test
|
|
23
|
public void testEmptyListIsSublistOfNonEmptyList() {
|
23
|
public void testEmptyListIsSublistOfNonEmptyList() {
|
|
24
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
24
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
28
|
assertEquals(Relationship.SUBLIST, relationship);
|
28
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
29
|
}
|
29
|
}
|
|
30
|
|
30
|
|
|
31
|
- @Ignore
|
|
|
|
|
|
31
|
+ @Ignore("Remove to run test")
|
|
32
|
@Test
|
32
|
@Test
|
|
33
|
public void testNonEmptyListIsSuperlistOfEmptyList() {
|
33
|
public void testNonEmptyListIsSuperlistOfEmptyList() {
|
|
34
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
34
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
38
|
assertEquals(Relationship.SUPERLIST, relationship);
|
38
|
assertEquals(Relationship.SUPERLIST, relationship);
|
|
39
|
}
|
39
|
}
|
|
40
|
|
40
|
|
|
41
|
- @Ignore
|
|
|
|
|
|
41
|
+ @Ignore("Remove to run test")
|
|
42
|
@Test
|
42
|
@Test
|
|
43
|
public void testListIsEqualToItself() {
|
43
|
public void testListIsEqualToItself() {
|
|
44
|
List<String> anyList = asList("1", "2", "3");
|
44
|
List<String> anyList = asList("1", "2", "3");
|
|
|
|
|
|
|
50
|
assertEquals(Relationship.EQUAL, relationship);
|
50
|
assertEquals(Relationship.EQUAL, relationship);
|
|
51
|
}
|
51
|
}
|
|
52
|
|
52
|
|
|
53
|
- @Ignore
|
|
|
|
|
|
53
|
+ @Ignore("Remove to run test")
|
|
54
|
@Test
|
54
|
@Test
|
|
55
|
public void testDifferentListsOfTheSameLengthAreUnequal() {
|
55
|
public void testDifferentListsOfTheSameLengthAreUnequal() {
|
|
56
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
56
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
60
|
assertEquals(Relationship.UNEQUAL, relationship);
|
60
|
assertEquals(Relationship.UNEQUAL, relationship);
|
|
61
|
}
|
61
|
}
|
|
62
|
|
62
|
|
|
63
|
- @Ignore
|
|
|
|
|
|
63
|
+ @Ignore("Remove to run test")
|
|
64
|
@Test
|
64
|
@Test
|
|
65
|
public void testSublistCheckDoesNotAbortAfterFalseStart() {
|
65
|
public void testSublistCheckDoesNotAbortAfterFalseStart() {
|
|
66
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
66
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
70
|
assertEquals(Relationship.SUBLIST, relationship);
|
70
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
71
|
}
|
71
|
}
|
|
72
|
|
72
|
|
|
73
|
- @Ignore
|
|
|
|
|
|
73
|
+ @Ignore("Remove to run test")
|
|
74
|
@Test
|
74
|
@Test
|
|
75
|
public void testSublistCheckHandlesExtraneousRepeatsOfFirstEntry() {
|
75
|
public void testSublistCheckHandlesExtraneousRepeatsOfFirstEntry() {
|
|
76
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
76
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
80
|
assertEquals(Relationship.SUBLIST, relationship);
|
80
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
81
|
}
|
81
|
}
|
|
82
|
|
82
|
|
|
83
|
- @Ignore
|
|
|
|
|
|
83
|
+ @Ignore("Remove to run test")
|
|
84
|
@Test
|
84
|
@Test
|
|
85
|
public void testSublistAtStart() {
|
85
|
public void testSublistAtStart() {
|
|
86
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
86
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
90
|
assertEquals(Relationship.SUBLIST, relationship);
|
90
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
91
|
}
|
91
|
}
|
|
92
|
|
92
|
|
|
93
|
- @Ignore
|
|
|
|
|
|
93
|
+ @Ignore("Remove to run test")
|
|
94
|
@Test
|
94
|
@Test
|
|
95
|
public void testSublistInMiddle() {
|
95
|
public void testSublistInMiddle() {
|
|
96
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
96
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
100
|
assertEquals(Relationship.SUBLIST, relationship);
|
100
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
101
|
}
|
101
|
}
|
|
102
|
|
102
|
|
|
103
|
- @Ignore
|
|
|
|
|
|
103
|
+ @Ignore("Remove to run test")
|
|
104
|
@Test
|
104
|
@Test
|
|
105
|
public void testSublistAtEnd() {
|
105
|
public void testSublistAtEnd() {
|
|
106
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
106
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
110
|
assertEquals(Relationship.SUBLIST, relationship);
|
110
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
111
|
}
|
111
|
}
|
|
112
|
|
112
|
|
|
113
|
- @Ignore
|
|
|
|
|
|
113
|
+ @Ignore("Remove to run test")
|
|
114
|
@Test
|
114
|
@Test
|
|
115
|
public void testAtStartOfSuperlist() {
|
115
|
public void testAtStartOfSuperlist() {
|
|
116
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
116
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
120
|
assertEquals(Relationship.SUPERLIST, relationship);
|
120
|
assertEquals(Relationship.SUPERLIST, relationship);
|
|
121
|
}
|
121
|
}
|
|
122
|
|
122
|
|
|
123
|
- @Ignore
|
|
|
|
|
|
123
|
+ @Ignore("Remove to run test")
|
|
124
|
@Test
|
124
|
@Test
|
|
125
|
public void testInMiddleOfSuperlist() {
|
125
|
public void testInMiddleOfSuperlist() {
|
|
126
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
126
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
130
|
assertEquals(Relationship.SUPERLIST, relationship);
|
130
|
assertEquals(Relationship.SUPERLIST, relationship);
|
|
131
|
}
|
131
|
}
|
|
132
|
|
132
|
|
|
133
|
- @Ignore
|
|
|
|
|
|
133
|
+ @Ignore("Remove to run test")
|
|
134
|
@Test
|
134
|
@Test
|
|
135
|
public void testAtEndOfSuperlist() {
|
135
|
public void testAtEndOfSuperlist() {
|
|
136
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
136
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
140
|
assertEquals(Relationship.SUPERLIST, relationship);
|
140
|
assertEquals(Relationship.SUPERLIST, relationship);
|
|
141
|
}
|
141
|
}
|
|
142
|
|
142
|
|
|
143
|
- @Ignore
|
|
|
|
|
|
143
|
+ @Ignore("Remove to run test")
|
|
144
|
@Test
|
144
|
@Test
|
|
145
|
public void testFirstListMissingElementFromSecondList() {
|
145
|
public void testFirstListMissingElementFromSecondList() {
|
|
146
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
146
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
150
|
assertEquals(Relationship.UNEQUAL, relationship);
|
150
|
assertEquals(Relationship.UNEQUAL, relationship);
|
|
151
|
}
|
151
|
}
|
|
152
|
|
152
|
|
|
153
|
- @Ignore
|
|
|
|
|
|
153
|
+ @Ignore("Remove to run test")
|
|
154
|
@Test
|
154
|
@Test
|
|
155
|
public void testSecondListMissingElementFromFirstList() {
|
155
|
public void testSecondListMissingElementFromFirstList() {
|
|
156
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
156
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
160
|
assertEquals(Relationship.UNEQUAL, relationship);
|
160
|
assertEquals(Relationship.UNEQUAL, relationship);
|
|
161
|
}
|
161
|
}
|
|
162
|
|
162
|
|
|
163
|
- @Ignore
|
|
|
|
|
|
163
|
+ @Ignore("Remove to run test")
|
|
164
|
@Test
|
164
|
@Test
|
|
165
|
public void testThatListOrderingIsAccountedFor() {
|
165
|
public void testThatListOrderingIsAccountedFor() {
|
|
166
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
166
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
|
|
|
|
170
|
assertEquals(Relationship.UNEQUAL, relationship);
|
170
|
assertEquals(Relationship.UNEQUAL, relationship);
|
|
171
|
}
|
171
|
}
|
|
172
|
|
172
|
|
|
173
|
- @Ignore
|
|
|
|
|
|
173
|
+ @Ignore("Remove to run test")
|
|
174
|
@Test
|
174
|
@Test
|
|
175
|
public void testThatListsWithSameDigitsButDifferentNumbersAreUnequal() {
|
175
|
public void testThatListsWithSameDigitsButDifferentNumbersAreUnequal() {
|
|
176
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
176
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|