Просмотр исходного кода

custom-set: update tests to 1.1.0

Samuel Warner 8 лет назад
Родитель
Сommit
ccf577e49d
2 измененных файлов: 9 добавлений и 1 удалений
  1. 1
    1
      exercises/custom-set/.meta/version
  2. 8
    0
      exercises/custom-set/src/test/java/CustomSetTest.java

+ 1
- 1
exercises/custom-set/.meta/version Просмотреть файл

1
-1.0.1
1
+1.1.0

+ 8
- 0
exercises/custom-set/src/test/java/CustomSetTest.java Просмотреть файл

172
 
172
 
173
     @Ignore("Remove to run test")
173
     @Ignore("Remove to run test")
174
     @Test
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
     public void addToEmptySet() {
183
     public void addToEmptySet() {
176
         int element = 3;
184
         int element = 3;
177
         CustomSet<Integer> expected = new CustomSet<>(Collections.unmodifiableList(Collections.singletonList(element)));
185
         CustomSet<Integer> expected = new CustomSet<>(Collections.unmodifiableList(Collections.singletonList(element)));