Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasmusson committed Oct 4, 2019
2 parents 27212bb + b9c2930 commit 1fdfbd6
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/test/java/datastructures/LinkedListTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,20 @@ public void DeleteValue() {
Assert.assertEquals(3, linkedList.getLast());
}

// TODO
@Test
public void DeleteLastValue() {
linkedList.addBack(1);
linkedList.addBack(2);
linkedList.addBack(3);
linkedList.addBack(4);

// Size
// Clear
// Delete with value
// Remove front
// Remove back
// Contains
linkedList.deleteValue(4);

// What you need to know
Assert.assertEquals(3, linkedList.size());
Assert.assertEquals(1, linkedList.getFirst());
Assert.assertEquals(3, linkedList.getLast());

linkedList.print();
}

}

0 comments on commit 1fdfbd6

Please sign in to comment.