|
|
@@ -172,6 +172,14 @@ public class CustomSetTest {
|
|
172
|
172
|
|
|
173
|
173
|
@Ignore("Remove to run test")
|
|
174
|
174
|
@Test
|
|
|
175
|
+ public void setIsNotEqualToLargerSetWithSameElements() {
|
|
|
176
|
+ CustomSet<String> customSet = new CustomSet<>(Arrays.asList("1", "2", "3"));
|
|
|
177
|
+ CustomSet<String> secondCustomSet = new CustomSet<>(Arrays.asList("1", "2", "3", "4"));
|
|
|
178
|
+ assertFalse(customSet.equals(secondCustomSet));
|
|
|
179
|
+ }
|
|
|
180
|
+
|
|
|
181
|
+ @Ignore("Remove to run test")
|
|
|
182
|
+ @Test
|
|
175
|
183
|
public void addToEmptySet() {
|
|
176
|
184
|
int element = 3;
|
|
177
|
185
|
CustomSet<Integer> expected = new CustomSet<>(Collections.unmodifiableList(Collections.singletonList(element)));
|