Skip to content

Commit 7938787

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ void testWhitespaceHandling() {
3737
}
3838

3939
@Test
40-
void testNullInput() { assertThrows(NullPointerException.class, () -> { ReverseStringUsingStack.reverse(null); });
40+
void testNullInput() {
41+
assertThrows(NullPointerException.class, () -> { ReverseStringUsingStack.reverse(null); });
4142
}
4243
}

0 commit comments

Comments
 (0)