update clamp function

This commit is contained in:
Michael Olayemi
2023-09-07 05:09:07 +00:00
parent b3fdbcb76f
commit ff430e69d5

View File

@@ -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));
}
*/