@Test public void testRemove() { HeadList list = new HeadList(); list.add(0); list.add(-18); list.add(1337); list.add(17); list.add(42); assertListRemove(list, -1, Integer.MIN_VALUE); assertList(list, "[0,-18,1337,17,42]"); assertListRemove(list, 5, Integer.MIN_VALUE); assertList(list, "[0,-18,1337,17,42]"); assertListRemove(list, 0, 0); assertList(list, "[-18,1337,17,42]"); assertListRemove(list, 4, Integer.MIN_VALUE); assertList(list, "[-18,1337,17,42]"); assertListRemove(list, 3, 42); assertList(list, "[-18,1337,17]"); assertListRemove(list, 1, 1337); assertList(list, "[-18,17]"); }
public int remove(int index) { return -1; }
HeadList { public int remove(int index) { return -1; } }
HeadList { public int remove(int index) { return -1; } HeadList(); }
HeadList { public int remove(int index) { return -1; } HeadList(); void add(int info); int remove(int index); void reverse(); @Override String toString(); static void main(String[] args); }
HeadList { public int remove(int index) { return -1; } HeadList(); void add(int info); int remove(int index); void reverse(); @Override String toString(); static void main(String[] args);  }