CeilAndFloorTests.java revision 2023
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * This code is free software; you can redistribute it and/or modify it
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * under the terms of the GNU General Public License version 2 only, as
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * published by the Free Software Foundation.
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * This code is distributed in the hope that it will be useful, but WITHOUT
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * version 2 for more details (a copy is included in the LICENSE file that
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * accompanied this code).
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * You should have received a copy of the GNU General Public License version
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * 2 along with this work; if not, write to the Free Software Foundation,
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
public class CeilAndFloorTests {
return failures;
return failures;
private static int nearIntegerTests() {
double [] fixedPoints = {
return failures;
public static int roundingTests() {
double [][] testCases = {
return failures;
throw new RuntimeException();