@Test public void testClear() { MyTreeSet test = new MyTreeSet(); test.add(1); test.add(2); test.add(3); test.add(4); // Size should be 4 System.out.println(test.size()); test.clear(); // Size should be 0 System.out.println(test.size()); }
@Ignore public void testSize() { MyTreeSet test = new MyTreeSet(); test.add(1); test.add(2); test.add(3); test.add(1); // Size should be 3. System.out.println(test.size()); }
@Ignore public void testAddT() { MyTreeSet test = new MyTreeSet(); test.add(1); test.add(2); test.add(3); test.add(1); System.out.println(test.size()); }