HyperbolicTests.java revision 809
/*
* Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* @test
* @bug 4851625
* @summary Tests for StrictMath.{sinh, cosh, tanh}
* @author Joseph D. Darcy
*/
/**
* The tests in ../Math/HyperbolicTests.java test properties that
* should hold for any implementation of the hyperbolic functions
* sinh, cos, and tanh, including the FDLIBM-based ones required by
* the StrictMath class. Therefore, the test cases in
* ../Math/HyperbolicTests.java are run against both the Math and
* StrictMath versions of the hyperbolic methods. The role of this
* test is to verify that the FDLIBM algorithms are being used by
* running golden file tests on values that may vary from one
* conforming implementation of the hyperbolics to another.
*/
public class HyperbolicTests {
private HyperbolicTests(){}
}
}
}
static int testSinh() {
int failures = 0;
double [][] testCases = {
};
return failures;
}
static int testCosh() {
int failures = 0;
double [][] testCases = {
};
return failures;
}
static int testTanh() {
int failures = 0;
double [][] testCases = {
{0x1.9999999999996p-4, 0x1.983d7795f4137p-4},
{0x1.9999999999997p-4, 0x1.983d7795f4137p-4},
};
return failures;
}
int failures = 0;
if (failures > 0) {
+ failures + " failures.");
throw new RuntimeException();
}
}
}