Create ReveresePolishStack, which is empty on creation.

Co-Authored-By: td1223
This commit is contained in:
Gleb Koval 2024-11-05 16:17:54 +00:00
parent b7fa2ff8cb
commit 84f1c2bb86
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
4 changed files with 22 additions and 4 deletions

View File

@ -1,2 +0,0 @@
Put your implementation code in this directory.
Delete this file before submission.

View File

@ -0,0 +1,7 @@
package ic.doc;
public class ReversePolishStack {
public int getSize() {
return 0;
}
}

View File

@ -1,2 +0,0 @@
Put your test code in this directory.
Delete this file before submission.

View File

@ -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));
}
}