Test of size method, of class SimpleList.
()
| 94 | * Test of size method, of class SimpleList. |
| 95 | */ |
| 96 | @Test |
| 97 | public void testSize() |
| 98 | { |
| 99 | System.out.println("size"); |
| 100 | SimpleList instance = new SimpleList(); |
| 101 | assertEquals(0, instance.size()); |
| 102 | instance.add("a"); |
| 103 | instance.add("b"); |
| 104 | assertEquals(2, instance.size()); |
| 105 | assertEquals("a", instance.remove(0)); |
| 106 | assertEquals(1, instance.size()); |
| 107 | instance.add("c"); |
| 108 | instance.add("d"); |
| 109 | assertEquals(3, instance.size()); |
| 110 | } |
| 111 | |
| 112 | @Test |
| 113 | public void testAdd() |