Esempio n. 1
0
 @Test
 public void testNumLinkedListLookup() {
   NumLinkedList list = new NumLinkedList();
   list.add(7.0);
   try {
     assertNotNull(
         "Method LOOKUP return the i-th element of the sequence"
             + " (raise an exception if the sequence has fewer than i elements).",
         list.lookup(0));
   } catch (Exception e) {
     System.out.println(e.getMessage());
   }
 }