Create ReveresePolishStack, which is empty on creation.
Co-Authored-By: td1223
This commit is contained in:
parent
b7fa2ff8cb
commit
84f1c2bb86
|
@ -1,2 +0,0 @@
|
|||
Put your implementation code in this directory.
|
||||
Delete this file before submission.
|
|
@ -0,0 +1,7 @@
|
|||
package ic.doc;
|
||||
|
||||
public class ReversePolishStack {
|
||||
public int getSize() {
|
||||
return 0;
|
||||
}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
Put your test code in this directory.
|
||||
Delete this file before submission.
|
|
@ -0,0 +1,15 @@
|
|||
package ic.doc;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.is;
|
||||
|
||||
public class ReversePolishStackTest {
|
||||
final ReversePolishStack reversePolishStack = new ReversePolishStack();
|
||||
|
||||
@Test
|
||||
public void reversePolishStackEmptyInitially() {
|
||||
assertThat(reversePolishStack.getSize(), is(0));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue