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 62380da commit 03a705fCopy full SHA for 03a705f
src/test/java/com/thealgorithms/others/TwoPointersTest.java
@@ -74,7 +74,7 @@ void testPairExistsAtEdges() {
74
75
@Test
76
void isPairedSum_shouldThrowException_whenArrayIsNull() {
77
- IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> {TwoPointers.isPairedSum(null, 10);});
+ IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> TwoPointers.isPairedSum(null, 10));
78
assertEquals("Input array must not be null.", exception.getMessage());
79
}
80
0 commit comments