diff --git a/core-java-modules/core-java-lang-math-3/src/test/java/com/baeldung/clampfunction/ClampFunctionUnitTest.java b/core-java-modules/core-java-lang-math-3/src/test/java/com/baeldung/clampfunction/ClampFunctionUnitTest.java index 7bcf676dd0..a8d40caee0 100644 --- a/core-java-modules/core-java-lang-math-3/src/test/java/com/baeldung/clampfunction/ClampFunctionUnitTest.java +++ b/core-java-modules/core-java-lang-math-3/src/test/java/com/baeldung/clampfunction/ClampFunctionUnitTest.java @@ -33,7 +33,7 @@ public class ClampFunctionUnitTest { * This method uses the clamp() method introduced in Java 21 @Test public void givenValueWithinRange_whenClamp_thenReturnValue() { - assertEquals(20, Math.clamp(20, 67,98)); + assertEquals(20, Math.clamp(20, 17, 98)); } */