From 175c84673ab58b47816d0e73d3ab2781879f533b Mon Sep 17 00:00:00 2001 From: "Wole Jr." <32499062+wolejri@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:11:30 -0400 Subject: [PATCH] Added an edge case for AbsoluteMax (#5441) * Added an edge case to test * Fixed linting on added test --- src/test/java/com/thealgorithms/maths/AbsoluteMaxTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/thealgorithms/maths/AbsoluteMaxTest.java b/src/test/java/com/thealgorithms/maths/AbsoluteMaxTest.java index 85ffb91e..70d2f64b 100644 --- a/src/test/java/com/thealgorithms/maths/AbsoluteMaxTest.java +++ b/src/test/java/com/thealgorithms/maths/AbsoluteMaxTest.java @@ -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