Added an edge case for AbsoluteMax (#5441)
* Added an edge case to test * Fixed linting on added test
This commit is contained in:
parent
a5b083cab0
commit
175c84673a
@ -12,6 +12,7 @@ public class AbsoluteMaxTest {
|
|||||||
assertEquals(16, AbsoluteMax.getMaxValue(-2, 0, 16));
|
assertEquals(16, AbsoluteMax.getMaxValue(-2, 0, 16));
|
||||||
assertEquals(-22, AbsoluteMax.getMaxValue(-3, -10, -22));
|
assertEquals(-22, AbsoluteMax.getMaxValue(-3, -10, -22));
|
||||||
assertEquals(-888, AbsoluteMax.getMaxValue(-888));
|
assertEquals(-888, AbsoluteMax.getMaxValue(-888));
|
||||||
|
assertEquals(-1, AbsoluteMax.getMaxValue(-1, -1, -1, -1, -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user