mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-10 21:43:15 +08:00
Added an edge case for AbsoluteMax (#5441)
* Added an edge case to test * Fixed linting on added test
This commit is contained in:
@ -12,6 +12,7 @@ public class AbsoluteMaxTest {
|
||||
assertEquals(16, AbsoluteMax.getMaxValue(-2, 0, 16));
|
||||
assertEquals(-22, AbsoluteMax.getMaxValue(-3, -10, -22));
|
||||
assertEquals(-888, AbsoluteMax.getMaxValue(-888));
|
||||
assertEquals(-1, AbsoluteMax.getMaxValue(-1, -1, -1, -1, -1));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user