RFR: 8301226: Add clamp() methods to java.lang.Math and to StrictMath [v6]
Raffaello Giulietti
rgiulietti at openjdk.org
Tue Feb 7 12:59:49 UTC 2023
On Tue, 7 Feb 2023 12:43:56 GMT, Tagir F. Valeev <tvaleev at openjdk.org> wrote:
>> test/jdk/java/lang/Math/Clamp.java line 149:
>>
>>> 147: {-0.0, 0.0, 0.0, 0.0},
>>> 148: {0.0, 0.0, 0.0, 0.0},
>>> 149: {1.0, 0.0, 0.0, 0.0},
>>
>> What about adding similar tests for the [-0.0, -0.0] interval?
>
> Added, thanks
@amaembo I think you added tests for the [0.0, 0.0] interval, rather than [-0.0, -0.0]
-------------
PR: https://git.openjdk.org/jdk/pull/12428
More information about the core-libs-dev
mailing list