Skip to content

Commit 7f0f98b

Browse files
committed
Fix
1 parent 75102ee commit 7f0f98b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/thealgorithms/datastructures/stacks/StackArrayTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ void testIsEmpty() {
5252

5353
@Test
5454
void testResizeOnPush() {
55-
StackArray<Integer> smallStack = new StackArray<>(2); // Start with a small stack size
55+
StackArray<Integer> smallStack = new StackArray<>(2);
5656
smallStack.push(1);
5757
smallStack.push(2);
5858
Assertions.assertTrue(smallStack.isFull());
5959

60-
smallStack.push(3); // This push should trigger a resize
60+
smallStack.push(3);
6161
Assertions.assertFalse(smallStack.isFull());
6262
Assertions.assertEquals(3, smallStack.size());
6363

0 commit comments

Comments
 (0)