Skip to content

Commit 32b1742

Browse files
authored
Merge pull request #506 from morrme/ignoresublist
sublist: add hints to @ignore annotations
2 parents 4a655c5 + ea5b449 commit 32b1742

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

exercises/sublist/src/test/java/RelationshipComputerTest.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void testThatTwoEmptyListsAreConsideredEqual() {
1818
assertEquals(Relationship.EQUAL, computedRelationship);
1919
}
2020

21-
@Ignore
21+
@Ignore("Remove to run test")
2222
@Test
2323
public void testEmptyListIsSublistOfNonEmptyList() {
2424
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -28,7 +28,7 @@ public void testEmptyListIsSublistOfNonEmptyList() {
2828
assertEquals(Relationship.SUBLIST, relationship);
2929
}
3030

31-
@Ignore
31+
@Ignore("Remove to run test")
3232
@Test
3333
public void testNonEmptyListIsSuperlistOfEmptyList() {
3434
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -38,7 +38,7 @@ public void testNonEmptyListIsSuperlistOfEmptyList() {
3838
assertEquals(Relationship.SUPERLIST, relationship);
3939
}
4040

41-
@Ignore
41+
@Ignore("Remove to run test")
4242
@Test
4343
public void testListIsEqualToItself() {
4444
List<String> anyList = asList("1", "2", "3");
@@ -50,7 +50,7 @@ public void testListIsEqualToItself() {
5050
assertEquals(Relationship.EQUAL, relationship);
5151
}
5252

53-
@Ignore
53+
@Ignore("Remove to run test")
5454
@Test
5555
public void testDifferentListsOfTheSameLengthAreUnequal() {
5656
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -60,7 +60,7 @@ public void testDifferentListsOfTheSameLengthAreUnequal() {
6060
assertEquals(Relationship.UNEQUAL, relationship);
6161
}
6262

63-
@Ignore
63+
@Ignore("Remove to run test")
6464
@Test
6565
public void testSublistCheckDoesNotAbortAfterFalseStart() {
6666
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -70,7 +70,7 @@ public void testSublistCheckDoesNotAbortAfterFalseStart() {
7070
assertEquals(Relationship.SUBLIST, relationship);
7171
}
7272

73-
@Ignore
73+
@Ignore("Remove to run test")
7474
@Test
7575
public void testSublistCheckHandlesExtraneousRepeatsOfFirstEntry() {
7676
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -80,7 +80,7 @@ public void testSublistCheckHandlesExtraneousRepeatsOfFirstEntry() {
8080
assertEquals(Relationship.SUBLIST, relationship);
8181
}
8282

83-
@Ignore
83+
@Ignore("Remove to run test")
8484
@Test
8585
public void testSublistAtStart() {
8686
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -90,7 +90,7 @@ public void testSublistAtStart() {
9090
assertEquals(Relationship.SUBLIST, relationship);
9191
}
9292

93-
@Ignore
93+
@Ignore("Remove to run test")
9494
@Test
9595
public void testSublistInMiddle() {
9696
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -100,7 +100,7 @@ public void testSublistInMiddle() {
100100
assertEquals(Relationship.SUBLIST, relationship);
101101
}
102102

103-
@Ignore
103+
@Ignore("Remove to run test")
104104
@Test
105105
public void testSublistAtEnd() {
106106
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -110,7 +110,7 @@ public void testSublistAtEnd() {
110110
assertEquals(Relationship.SUBLIST, relationship);
111111
}
112112

113-
@Ignore
113+
@Ignore("Remove to run test")
114114
@Test
115115
public void testAtStartOfSuperlist() {
116116
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -120,7 +120,7 @@ public void testAtStartOfSuperlist() {
120120
assertEquals(Relationship.SUPERLIST, relationship);
121121
}
122122

123-
@Ignore
123+
@Ignore("Remove to run test")
124124
@Test
125125
public void testInMiddleOfSuperlist() {
126126
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -130,7 +130,7 @@ public void testInMiddleOfSuperlist() {
130130
assertEquals(Relationship.SUPERLIST, relationship);
131131
}
132132

133-
@Ignore
133+
@Ignore("Remove to run test")
134134
@Test
135135
public void testAtEndOfSuperlist() {
136136
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -140,7 +140,7 @@ public void testAtEndOfSuperlist() {
140140
assertEquals(Relationship.SUPERLIST, relationship);
141141
}
142142

143-
@Ignore
143+
@Ignore("Remove to run test")
144144
@Test
145145
public void testFirstListMissingElementFromSecondList() {
146146
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -150,7 +150,7 @@ public void testFirstListMissingElementFromSecondList() {
150150
assertEquals(Relationship.UNEQUAL, relationship);
151151
}
152152

153-
@Ignore
153+
@Ignore("Remove to run test")
154154
@Test
155155
public void testSecondListMissingElementFromFirstList() {
156156
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -160,7 +160,7 @@ public void testSecondListMissingElementFromFirstList() {
160160
assertEquals(Relationship.UNEQUAL, relationship);
161161
}
162162

163-
@Ignore
163+
@Ignore("Remove to run test")
164164
@Test
165165
public void testThatListOrderingIsAccountedFor() {
166166
Relationship relationship = new RelationshipComputer<>().computeRelationship(
@@ -170,7 +170,7 @@ public void testThatListOrderingIsAccountedFor() {
170170
assertEquals(Relationship.UNEQUAL, relationship);
171171
}
172172

173-
@Ignore
173+
@Ignore("Remove to run test")
174174
@Test
175175
public void testThatListsWithSameDigitsButDifferentNumbersAreUnequal() {
176176
Relationship relationship = new RelationshipComputer<>().computeRelationship(

0 commit comments

Comments
 (0)