java/testFunc1/src/main/java/com/epam/deltix/utilities/FunctionsImport1.java [29:46]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (Double.doubleToRawLongBits(testOut) != Double.doubleToRawLongBits(refOut))
            throw new RuntimeException("For the arguments(" + a + ", " + b + ") native testFunction(=" + testOut + ") != refOut(=" + refOut + ").");
        return testOut;
    }

    public static void main(String[] args) {
        final double a, b;
        if (args.length == 2) {
            a = Double.parseDouble(args[0]);
            b = Double.parseDouble(args[1]);
        } else {
            SecureRandom random = new SecureRandom();
            a = Double.longBitsToDouble(random.nextLong());
            b = Double.longBitsToDouble(random.nextLong());
        }
        System.out.println("Arguments: " + a + " " + b);

        System.out.println("testFunction(" + a + "," + b + ") = " + checkTestFunction(a, b));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



java/testFunc2/src/main/java/com/epam/deltix/utilities/FunctionsImport2.java [29:46]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (Double.doubleToRawLongBits(testOut) != Double.doubleToRawLongBits(refOut))
            throw new RuntimeException("For the arguments(" + a + ", " + b + ") native testFunction(=" + testOut + ") != refOut(=" + refOut + ").");
        return testOut;
    }

    public static void main(String[] args) {
        final double a, b;
        if (args.length == 2) {
            a = Double.parseDouble(args[0]);
            b = Double.parseDouble(args[1]);
        } else {
            SecureRandom random = new SecureRandom();
            a = Double.longBitsToDouble(random.nextLong());
            b = Double.longBitsToDouble(random.nextLong());
        }
        System.out.println("Arguments: " + a + " " + b);

        System.out.println("testFunction(" + a + "," + b + ") = " + checkTestFunction(a, b));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



