@Test public void decrease_givenFirst8_givenLast0_givenSize9_makesSize4() throws Exception { buildStack(8, 0, 5, 0, 0, 0, 0, 0, 0, 0, 3); int[] expected = {0, 3, 5, 0}; decrease(); assertStack(1, 2, expected); }
public void decrease() { }
SymmetricStack { public void decrease() { } }
SymmetricStack { public void decrease() { } SymmetricStack(); }
SymmetricStack { public void decrease() { } SymmetricStack(); int getFirst(); void setFirst(int first); int getLast(); void setLast(int last); int[] getData(); void setData(int[] data); int getNumberOfElements(); void increase(); void decrease(); boolean isEmpty(); boolean isFull(); void prepend(int x); void append(int x); void removeFirst(); void removeLast(); @Override String toString(); }
SymmetricStack { public void decrease() { } SymmetricStack(); int getFirst(); void setFirst(int first); int getLast(); void setLast(int last); int[] getData(); void setData(int[] data); int getNumberOfElements(); void increase(); void decrease(); boolean isEmpty(); boolean isFull(); void prepend(int x); void append(int x); void removeFirst(); void removeLast(); @Override String toString();  }