@Test public void test_3Elems() { prog3_2.push(7); prog3_2.push(62); prog3_2.push(21); assertEquals(7, prog3_2.getMinimum()); }
@Test public void test_MinimumAfterPop() { prog3_2.push(7); prog3_2.push(62); prog3_2.push(21); prog3_2.push(4); prog3_2.push(54); prog3_2.push(2); assertEquals(2, prog3_2.getMinimum()); prog3_2.getStack().pop(); assertEquals(4, prog3_2.getMinimum()); }
@Test public void test_1Elem() { prog3_2.push(7); assertEquals(7, prog3_2.getMinimum()); }