示例#1
0
文件: Prog3_2_Test.java 项目: ptiv/iv
 @Test
 public void test_3Elems() {
   prog3_2.push(7);
   prog3_2.push(62);
   prog3_2.push(21);
   assertEquals(7, prog3_2.getMinimum());
 }
示例#2
0
文件: Prog3_2_Test.java 项目: ptiv/iv
  @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());
  }
示例#3
0
文件: Prog3_2_Test.java 项目: ptiv/iv
 @Test
 public void test_1Elem() {
   prog3_2.push(7);
   assertEquals(7, prog3_2.getMinimum());
 }