Merge pull request #14730 from Michaelin007/master
update clamp function
This commit is contained in:
commit
ca0599956a
|
@ -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));
|
||||
}
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue