Merge pull request #14730 from Michaelin007/master

update clamp function
This commit is contained in:
Loredana Crusoveanu 2023-09-07 08:40:16 +03:00 committed by GitHub
commit ca0599956a
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));
}
*/