Skip to content

Commit 175c846

Browse files
authored
Added an edge case for AbsoluteMax (#5441)
* Added an edge case to test * Fixed linting on added test
1 parent a5b083c commit 175c846

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/com/thealgorithms/maths/AbsoluteMaxTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ void testGetMaxValue() {
1212
assertEquals(16, AbsoluteMax.getMaxValue(-2, 0, 16));
1313
assertEquals(-22, AbsoluteMax.getMaxValue(-3, -10, -22));
1414
assertEquals(-888, AbsoluteMax.getMaxValue(-888));
15+
assertEquals(-1, AbsoluteMax.getMaxValue(-1, -1, -1, -1, -1));
1516
}
1617

1718
@Test

0 commit comments

Comments
 (0)