コード例 #1
0
 @Test
 public void testAddToTail() {
   IntegerList list = new IntegerList(5);
   list.addToTail(6);
   assertEquals(6, list.getTailValue());
   assertEquals(5, list.getHeadValue());
 }
コード例 #2
0
  @Test
  public void testGetTailValue() {
    IntegerList list = new IntegerList(5);
    list.addToTail(6);
    list.addToTail(7);

    assertEquals(7, list.getTailValue());
  }