This commit is contained in:
2025-06-12 11:59:41 +02:00
parent f42c1b23ab
commit 57aae3eda6
9 changed files with 354 additions and 12 deletions

View File

@@ -0,0 +1,17 @@
package collection;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class SetTest {
@Test
public void testAdd() {
Set<Integer> set = SetFactory.create();
set = set.add(1);
assertTrue(set.contains(1));
set = set.add(3);
assertTrue(set.contains(3));
}
}