RFR: JDK-8301833: Add manual tests for FDLIBM porting
Brian Burkhalter
bpb at openjdk.org
Wed Feb 8 17:06:45 UTC 2023
On Mon, 6 Feb 2023 01:50:55 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> To help add assurances that the main-line port of FDLIBM to Java is working correctly, added some long-running manual tests to probe that the transliteration port and the corresponding StrictMath method are in agreement on a large number of argument, say, all float values.
>
> To test the transliteration port, this test can be run against a build where the JDK has *not* had the FDLIBM code used for StrictMath ported to Java.
test/jdk/java/lang/StrictMath/ExhaustingTests.java line 37:
> 35: import java.util.function.DoubleUnaryOperator;
> 36:
> 37: public class ExhaustingTests {
Great name!
test/jdk/java/lang/StrictMath/ExhaustingTests.java line 57:
> 55: long failures = 0;
> 56: UnaryTestCase[] testCases = {
> 57: // new UnaryTestCase("sqrt", FdlibmTranslit::sqrt, StrictMath::sqrt),
Maybe not include the TBD cases as part of this initial PR?
-------------
PR: https://git.openjdk.org/jdk/pull/12430
More information about the core-libs-dev
mailing list