Skip to content
Snippets Groups Projects
Commit c5b30764 authored by Christopher Bohn's avatar Christopher Bohn :thinking:
Browse files

added testPopFromHeightThreeValue() and testPopFromHeightThreeSize()

parent 8494df19
No related branches found
No related tags found
No related merge requests found
...@@ -52,4 +52,17 @@ public class MyStackTest { ...@@ -52,4 +52,17 @@ public class MyStackTest {
stack.pop(); stack.pop();
assertEquals(0,stack.size()); assertEquals(0,stack.size());
} }
@Test
public void testPopFromHeightThreeValue() {
pushDummies(3);
assertEquals(3, stack.pop());
}
@Test
public void testPopFromHeightThreeSize() {
pushDummies(3);
stack.pop();
assertEquals(2,stack.size());
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment