File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/test/java/datastructure/stack Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 99import static org .junit .Assert .assertThat ;
1010
1111public class MyStackWithArrayListTest {
12+
13+ /*
14+ TASK
15+ ArrayList를 사용하여 Stack을 구현한다.
16+ */
17+
1218 @ Test
1319 public void test () {
1420 MyStackWithArrayList <Integer > stack = new MyStackWithArrayList <>();
Original file line number Diff line number Diff line change 66import static org .junit .Assert .assertThat ;
77
88public class MyStackWithArrayTest {
9+
10+ /*
11+ TASK
12+ Array를 사용하여 Stack을 구현한다.
13+ */
14+
915 @ Test
1016 public void test () {
1117 MyStackWithArray stack = new MyStackWithArray ();
@@ -25,7 +31,7 @@ public void test() {
2531 assertThat (stack .pop (), is (2 ));
2632 assertThat (stack .pop (), is (1 ));
2733 assertThat (stack .pop (), is (0 ));
28-
34+
2935// java.lang.RuntimeException: Empty Stack!
3036// assertThat(0, is(stack.pop()));
3137 }
You can’t perform that action at this time.
0 commit comments