We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75102ee commit 7f0f98bCopy full SHA for 7f0f98b
src/test/java/com/thealgorithms/datastructures/stacks/StackArrayTest.java
@@ -52,12 +52,12 @@ void testIsEmpty() {
52
53
@Test
54
void testResizeOnPush() {
55
- StackArray<Integer> smallStack = new StackArray<>(2); // Start with a small stack size
+ StackArray<Integer> smallStack = new StackArray<>(2);
56
smallStack.push(1);
57
smallStack.push(2);
58
Assertions.assertTrue(smallStack.isFull());
59
60
- smallStack.push(3); // This push should trigger a resize
+ smallStack.push(3);
61
Assertions.assertFalse(smallStack.isFull());
62
Assertions.assertEquals(3, smallStack.size());
63
0 commit comments