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

Added testPopFromHeightOneSize

parent 8886afa7
Branches
Tags fails-testPopFromHeightOneSize
No related merge requests found
...@@ -45,4 +45,11 @@ public class MyStackTest { ...@@ -45,4 +45,11 @@ public class MyStackTest {
pushDummies(1); pushDummies(1);
assertEquals(1, stack.pop()); assertEquals(1, stack.pop());
} }
@Test
public void testPopFromHeightOneSize() {
pushDummies(1);
stack.pop();
assertEquals(0,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