RFR: 8211002: test/jdk/java/lang/Math/PowTests.java skips testing for non-corner-case values
Joe Darcy
darcy at openjdk.java.net
Tue Jul 13 23:32:12 UTC 2021
On Mon, 12 Jul 2021 19:39:13 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Please consider this proposal to add some test coverage comparing `Math` and `StrictMath` results of `pow()`.
test/jdk/java/lang/Math/PowTests.java line 65:
> 63: int failures = 0;
> 64: if (Double.isNaN(smResult)) {
> 65: if (!Double.isNaN(mResult)) failures = 1;
Pretty sure the Tests.testUlpDiff call will handle two NaNs as well as NaN/non-NaN argument.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4758
More information about the core-libs-dev
mailing list