Skip to content

Commit 342d669

Browse files
committed
Add unit tests for ReverseStringUsingStack
1 parent a0aabd2 commit 342d669

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/test/java/com/thealgorithms/stacks/ReverseStringUsingStackTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ void testWhitespaceHandling() {
3737
}
3838

3939
@Test
40-
void testNullInput() {
41-
assertThrows(NullPointerException.class, () -> {
42-
ReverseStringUsingStack.reverse(null);
43-
});
40+
void testNullInput() { assertThrows(NullPointerException.class, () -> { ReverseStringUsingStack.reverse(null); });
4441
}
4542
}

0 commit comments

Comments
 (0)