|
|
@@ -18,7 +18,7 @@ public class CustomSetTest {
|
|
18
|
18
|
}
|
|
19
|
19
|
|
|
20
|
20
|
@Test
|
|
21
|
|
- @Ignore
|
|
|
21
|
+ @Ignore("Remove to run test")
|
|
22
|
22
|
public void setsWithElementsAreNotEmpty() {
|
|
23
|
23
|
final boolean actual
|
|
24
|
24
|
= new CustomSet<>(Arrays.asList(1))
|
|
|
@@ -28,7 +28,7 @@ public class CustomSetTest {
|
|
28
|
28
|
}
|
|
29
|
29
|
|
|
30
|
30
|
@Test
|
|
31
|
|
- @Ignore
|
|
|
31
|
+ @Ignore("Remove to run test")
|
|
32
|
32
|
public void nothingIsContainedInAnEmptySet() {
|
|
33
|
33
|
final boolean actual
|
|
34
|
34
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -38,7 +38,7 @@ public class CustomSetTest {
|
|
38
|
38
|
}
|
|
39
|
39
|
|
|
40
|
40
|
@Test
|
|
41
|
|
- @Ignore
|
|
|
41
|
+ @Ignore("Remove to run test")
|
|
42
|
42
|
public void whenTheElementIsInTheSet() {
|
|
43
|
43
|
final boolean actual
|
|
44
|
44
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
|
|
@@ -48,7 +48,7 @@ public class CustomSetTest {
|
|
48
|
48
|
}
|
|
49
|
49
|
|
|
50
|
50
|
@Test
|
|
51
|
|
- @Ignore
|
|
|
51
|
+ @Ignore("Remove to run test")
|
|
52
|
52
|
public void whenTheElementIsNotInTheSet() {
|
|
53
|
53
|
final boolean actual
|
|
54
|
54
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
|
|
@@ -58,7 +58,7 @@ public class CustomSetTest {
|
|
58
|
58
|
}
|
|
59
|
59
|
|
|
60
|
60
|
@Test
|
|
61
|
|
- @Ignore
|
|
|
61
|
+ @Ignore("Remove to run test")
|
|
62
|
62
|
public void emptySetIsASubsetOfAnotherEmptySet() {
|
|
63
|
63
|
final boolean actual
|
|
64
|
64
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -70,7 +70,7 @@ public class CustomSetTest {
|
|
70
|
70
|
}
|
|
71
|
71
|
|
|
72
|
72
|
@Test
|
|
73
|
|
- @Ignore
|
|
|
73
|
+ @Ignore("Remove to run test")
|
|
74
|
74
|
public void emptySetIsASubsetOfNonEemptySet() {
|
|
75
|
75
|
final boolean actual
|
|
76
|
76
|
= new CustomSet<>(Arrays.asList(1))
|
|
|
@@ -82,7 +82,7 @@ public class CustomSetTest {
|
|
82
|
82
|
}
|
|
83
|
83
|
|
|
84
|
84
|
@Test
|
|
85
|
|
- @Ignore
|
|
|
85
|
+ @Ignore("Remove to run test")
|
|
86
|
86
|
public void nonEmptySetIsNotASubsetOfEmptySet() {
|
|
87
|
87
|
final boolean actual
|
|
88
|
88
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -94,7 +94,7 @@ public class CustomSetTest {
|
|
94
|
94
|
}
|
|
95
|
95
|
|
|
96
|
96
|
@Test
|
|
97
|
|
- @Ignore
|
|
|
97
|
+ @Ignore("Remove to run test")
|
|
98
|
98
|
public void setIsASubsetOfSetWithExactSameElements() {
|
|
99
|
99
|
final boolean actual
|
|
100
|
100
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
|
|
@@ -106,7 +106,7 @@ public class CustomSetTest {
|
|
106
|
106
|
}
|
|
107
|
107
|
|
|
108
|
108
|
@Test
|
|
109
|
|
- @Ignore
|
|
|
109
|
+ @Ignore("Remove to run test")
|
|
110
|
110
|
public void setIsASubsetOfLargerSetWithSameElements() {
|
|
111
|
111
|
final boolean actual
|
|
112
|
112
|
= new CustomSet<>(Arrays.asList(4, 1, 2, 3))
|
|
|
@@ -118,7 +118,7 @@ public class CustomSetTest {
|
|
118
|
118
|
}
|
|
119
|
119
|
|
|
120
|
120
|
@Test
|
|
121
|
|
- @Ignore
|
|
|
121
|
+ @Ignore("Remove to run test")
|
|
122
|
122
|
public void setIsNotASubsetOfSetThatDoesNotContainItsElements() {
|
|
123
|
123
|
final boolean actual
|
|
124
|
124
|
= new CustomSet<>(Arrays.asList(4, 1, 3))
|
|
|
@@ -130,7 +130,7 @@ public class CustomSetTest {
|
|
130
|
130
|
}
|
|
131
|
131
|
|
|
132
|
132
|
@Test
|
|
133
|
|
- @Ignore
|
|
|
133
|
+ @Ignore("Remove to run test")
|
|
134
|
134
|
public void theEmptySetIsDisjointWithItself() {
|
|
135
|
135
|
final boolean actual
|
|
136
|
136
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -142,7 +142,7 @@ public class CustomSetTest {
|
|
142
|
142
|
}
|
|
143
|
143
|
|
|
144
|
144
|
@Test
|
|
145
|
|
- @Ignore
|
|
|
145
|
+ @Ignore("Remove to run test")
|
|
146
|
146
|
public void emptySetIsDisjointWithNonEmptySet() {
|
|
147
|
147
|
final boolean actual
|
|
148
|
148
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -154,7 +154,7 @@ public class CustomSetTest {
|
|
154
|
154
|
}
|
|
155
|
155
|
|
|
156
|
156
|
@Test
|
|
157
|
|
- @Ignore
|
|
|
157
|
+ @Ignore("Remove to run test")
|
|
158
|
158
|
public void nonEmptySetIsDisjointWithEmptySet() {
|
|
159
|
159
|
final boolean actual
|
|
160
|
160
|
= new CustomSet<>(Arrays.asList(1))
|
|
|
@@ -166,7 +166,7 @@ public class CustomSetTest {
|
|
166
|
166
|
}
|
|
167
|
167
|
|
|
168
|
168
|
@Test
|
|
169
|
|
- @Ignore
|
|
|
169
|
+ @Ignore("Remove to run test")
|
|
170
|
170
|
public void setsAreNotDisjointIfTheyShareAnElement() {
|
|
171
|
171
|
final boolean actual
|
|
172
|
172
|
= new CustomSet<>(Arrays.asList(1, 2))
|
|
|
@@ -178,7 +178,7 @@ public class CustomSetTest {
|
|
178
|
178
|
}
|
|
179
|
179
|
|
|
180
|
180
|
@Test
|
|
181
|
|
- @Ignore
|
|
|
181
|
+ @Ignore("Remove to run test")
|
|
182
|
182
|
public void setsAreDisjointIfTheyShareNoElements() {
|
|
183
|
183
|
final boolean actual
|
|
184
|
184
|
= new CustomSet<>(Arrays.asList(1, 2))
|
|
|
@@ -190,7 +190,7 @@ public class CustomSetTest {
|
|
190
|
190
|
}
|
|
191
|
191
|
|
|
192
|
192
|
@Test
|
|
193
|
|
- @Ignore
|
|
|
193
|
+ @Ignore("Remove to run test")
|
|
194
|
194
|
public void emptySetsAreEqual() {
|
|
195
|
195
|
final boolean actual
|
|
196
|
196
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -202,7 +202,7 @@ public class CustomSetTest {
|
|
202
|
202
|
}
|
|
203
|
203
|
|
|
204
|
204
|
@Test
|
|
205
|
|
- @Ignore
|
|
|
205
|
+ @Ignore("Remove to run test")
|
|
206
|
206
|
public void emptySetIsNotEqualToNonEmptySet() {
|
|
207
|
207
|
final boolean actual
|
|
208
|
208
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -214,7 +214,7 @@ public class CustomSetTest {
|
|
214
|
214
|
}
|
|
215
|
215
|
|
|
216
|
216
|
@Test
|
|
217
|
|
- @Ignore
|
|
|
217
|
+ @Ignore("Remove to run test")
|
|
218
|
218
|
public void nonEmptySetIsNotEqualToEmptySet() {
|
|
219
|
219
|
final boolean actual
|
|
220
|
220
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
|
|
@@ -226,7 +226,7 @@ public class CustomSetTest {
|
|
226
|
226
|
}
|
|
227
|
227
|
|
|
228
|
228
|
@Test
|
|
229
|
|
- @Ignore
|
|
|
229
|
+ @Ignore("Remove to run test")
|
|
230
|
230
|
public void setsWithTheSameElementsAreEqual() {
|
|
231
|
231
|
final boolean actual
|
|
232
|
232
|
= new CustomSet<>(Arrays.asList(1, 2))
|
|
|
@@ -238,7 +238,7 @@ public class CustomSetTest {
|
|
238
|
238
|
}
|
|
239
|
239
|
|
|
240
|
240
|
@Test
|
|
241
|
|
- @Ignore
|
|
|
241
|
+ @Ignore("Remove to run test")
|
|
242
|
242
|
public void setsWithDifferentElementsAreNotEqual() {
|
|
243
|
243
|
final boolean actual
|
|
244
|
244
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
|
|
@@ -250,7 +250,7 @@ public class CustomSetTest {
|
|
250
|
250
|
}
|
|
251
|
251
|
|
|
252
|
252
|
@Test
|
|
253
|
|
- @Ignore
|
|
|
253
|
+ @Ignore("Remove to run test")
|
|
254
|
254
|
public void addToEmptySet() {
|
|
255
|
255
|
final int element = 3;
|
|
256
|
256
|
final CustomSet<Integer> expected
|
|
|
@@ -268,7 +268,7 @@ public class CustomSetTest {
|
|
268
|
268
|
}
|
|
269
|
269
|
|
|
270
|
270
|
@Test
|
|
271
|
|
- @Ignore
|
|
|
271
|
+ @Ignore("Remove to run test")
|
|
272
|
272
|
public void addToNonEmptySet() {
|
|
273
|
273
|
final int element = 3;
|
|
274
|
274
|
final CustomSet<Integer> expected
|
|
|
@@ -286,7 +286,7 @@ public class CustomSetTest {
|
|
286
|
286
|
}
|
|
287
|
287
|
|
|
288
|
288
|
@Test
|
|
289
|
|
- @Ignore
|
|
|
289
|
+ @Ignore("Remove to run test")
|
|
290
|
290
|
public void addingAnExistingElementDoesNotChangeTheSet() {
|
|
291
|
291
|
final int element = 3;
|
|
292
|
292
|
final CustomSet<Integer> expected
|
|
|
@@ -303,7 +303,7 @@ public class CustomSetTest {
|
|
303
|
303
|
}
|
|
304
|
304
|
|
|
305
|
305
|
@Test
|
|
306
|
|
- @Ignore
|
|
|
306
|
+ @Ignore("Remove to run test")
|
|
307
|
307
|
public void intersectionOfTwoEmptySetsIsAnEmptySet() {
|
|
308
|
308
|
final CustomSet<Integer> actual
|
|
309
|
309
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -316,7 +316,7 @@ public class CustomSetTest {
|
|
316
|
316
|
}
|
|
317
|
317
|
|
|
318
|
318
|
@Test
|
|
319
|
|
- @Ignore
|
|
|
319
|
+ @Ignore("Remove to run test")
|
|
320
|
320
|
public void intersectionOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
|
|
321
|
321
|
final CustomSet<Integer> actual
|
|
322
|
322
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -329,7 +329,7 @@ public class CustomSetTest {
|
|
329
|
329
|
}
|
|
330
|
330
|
|
|
331
|
331
|
@Test
|
|
332
|
|
- @Ignore
|
|
|
332
|
+ @Ignore("Remove to run test")
|
|
333
|
333
|
public void intersectionOfANonEmptySetAndAnEmptySetIsAnEmptySet() {
|
|
334
|
334
|
final CustomSet<Integer> actual
|
|
335
|
335
|
= new CustomSet<>(Arrays.asList(1, 2, 3, 4))
|
|
|
@@ -343,7 +343,7 @@ public class CustomSetTest {
|
|
343
|
343
|
}
|
|
344
|
344
|
|
|
345
|
345
|
@Test
|
|
346
|
|
- @Ignore
|
|
|
346
|
+ @Ignore("Remove to run test")
|
|
347
|
347
|
public void intersectionOfTwoSetsWithNoSharedElementsIsAnEmptySet() {
|
|
348
|
348
|
final CustomSet<Integer> actual
|
|
349
|
349
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
|
|
@@ -356,7 +356,7 @@ public class CustomSetTest {
|
|
356
|
356
|
}
|
|
357
|
357
|
|
|
358
|
358
|
@Test
|
|
359
|
|
- @Ignore
|
|
|
359
|
+ @Ignore("Remove to run test")
|
|
360
|
360
|
public void intersectionOfTwoSetsWithSharedElementsIsASetOfTheSharedElements() {
|
|
361
|
361
|
final CustomSet<Integer> expected
|
|
362
|
362
|
= new CustomSet<>(
|
|
|
@@ -374,7 +374,7 @@ public class CustomSetTest {
|
|
374
|
374
|
}
|
|
375
|
375
|
|
|
376
|
376
|
@Test
|
|
377
|
|
- @Ignore
|
|
|
377
|
+ @Ignore("Remove to run test")
|
|
378
|
378
|
public void differenceOfTwoEmptySetsIsAnEmptySet() {
|
|
379
|
379
|
final CustomSet<Integer> actual
|
|
380
|
380
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -387,7 +387,7 @@ public class CustomSetTest {
|
|
387
|
387
|
}
|
|
388
|
388
|
|
|
389
|
389
|
@Test
|
|
390
|
|
- @Ignore
|
|
|
390
|
+ @Ignore("Remove to run test")
|
|
391
|
391
|
public void differenceOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
|
|
392
|
392
|
final CustomSet<Integer> actual
|
|
393
|
393
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -400,7 +400,7 @@ public class CustomSetTest {
|
|
400
|
400
|
}
|
|
401
|
401
|
|
|
402
|
402
|
@Test
|
|
403
|
|
- @Ignore
|
|
|
403
|
+ @Ignore("Remove to run test")
|
|
404
|
404
|
public void differenceOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
|
|
405
|
405
|
final CustomSet<Integer> expected
|
|
406
|
406
|
= new CustomSet<>(
|
|
|
@@ -418,7 +418,7 @@ public class CustomSetTest {
|
|
418
|
418
|
}
|
|
419
|
419
|
|
|
420
|
420
|
@Test
|
|
421
|
|
- @Ignore
|
|
|
421
|
+ @Ignore("Remove to run test")
|
|
422
|
422
|
public void differenceOfTwoNonEmptySetsIsASetOfElementsThatAreOnlyInTheFirstSet() {
|
|
423
|
423
|
final CustomSet<Integer> expected
|
|
424
|
424
|
= new CustomSet<>(
|
|
|
@@ -436,7 +436,7 @@ public class CustomSetTest {
|
|
436
|
436
|
}
|
|
437
|
437
|
|
|
438
|
438
|
@Test
|
|
439
|
|
- @Ignore
|
|
|
439
|
+ @Ignore("Remove to run test")
|
|
440
|
440
|
public void unionOfTwoEmptySetsIsAnEmptySet() {
|
|
441
|
441
|
final CustomSet<Integer> actual
|
|
442
|
442
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
|
|
@@ -449,7 +449,7 @@ public class CustomSetTest {
|
|
449
|
449
|
}
|
|
450
|
450
|
|
|
451
|
451
|
@Test
|
|
452
|
|
- @Ignore
|
|
|
452
|
+ @Ignore("Remove to run test")
|
|
453
|
453
|
public void unionOfAnEmptySetAndNonEmptySetIsTheNonEmptySet() {
|
|
454
|
454
|
final CustomSet<Integer> expected
|
|
455
|
455
|
= new CustomSet<>(
|
|
|
@@ -467,7 +467,7 @@ public class CustomSetTest {
|
|
467
|
467
|
}
|
|
468
|
468
|
|
|
469
|
469
|
@Test
|
|
470
|
|
- @Ignore
|
|
|
470
|
+ @Ignore("Remove to run test")
|
|
471
|
471
|
public void unionOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
|
|
472
|
472
|
final CustomSet<Integer> expected
|
|
473
|
473
|
= new CustomSet<>(
|
|
|
@@ -485,7 +485,7 @@ public class CustomSetTest {
|
|
485
|
485
|
}
|
|
486
|
486
|
|
|
487
|
487
|
@Test
|
|
488
|
|
- @Ignore
|
|
|
488
|
+ @Ignore("Remove to run test")
|
|
489
|
489
|
public void unionOfTwoNonEmptySetsContainsAllUniqueElements() {
|
|
490
|
490
|
final CustomSet<Integer> expected
|
|
491
|
491
|
= new CustomSet<>(
|