update clamp function

This commit is contained in:
Michael Olayemi 2023-09-07 05:09:07 +00:00
parent 7a0c69e969
commit 75bd390e27
1 changed files with 1 additions and 1 deletions

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