Skip to content

Commit 38e01f7

Browse files
committed
Fix clang format
1 parent dbfe367 commit 38e01f7

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
import static org.junit.jupiter.api.Assertions.assertFalse;
55
import static org.junit.jupiter.api.Assertions.assertThrows;
66
import static org.junit.jupiter.api.Assertions.assertTrue;
7+
78
import java.io.ByteArrayOutputStream;
89
import java.io.PrintStream;
9-
1010
import org.junit.jupiter.api.BeforeEach;
1111
import org.junit.jupiter.api.Test;
1212

13-
1413
class NodeStackTest {
1514

1615
private NodeStack<Integer> stack;
@@ -29,7 +28,6 @@ void testPushAndPeek() {
2928
stack.push(4);
3029
stack.push(5);
3130
assertEquals(5, stack.peek(), "Peek should return the last pushed item");
32-
3331
}
3432

3533
@Test
@@ -71,16 +69,4 @@ void testPrintEmptyStack() {
7169
stack.print();
7270
assertEquals("", outputStreamCaptor.toString().trim(), "The output of an empty stack should be an empty string.");
7371
}
74-
75-
@Test
76-
void testPrintNonEmptyStack() {
77-
stack.push(3);
78-
stack.push(4);
79-
stack.push(5);
80-
81-
stack.print();
82-
83-
assertEquals("5 \n4 \n3", outputStreamCaptor.toString().trim(), "The stack output should match the expected values in LIFO order.");
84-
}
8572
}
86-

0 commit comments

Comments
 (0)