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

added push() stub, added testPushOneElement()

parent f32ca970
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,8 @@ public class MyStack {
public int size() {
return 0;
}
public void push(Object element) {
;
}
}
......@@ -21,4 +21,10 @@ public class MyStackTest {
public void testEmptyStack() {
assertEquals(0, stack.size());
}
@Test
public void testPushOneElement() {
stack.push(new Object());
assertEquals(1, 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