test/java/lang/Double/ParseHexFloatingPoint.java
Print this page
*** 28,38 ****
* @author Joseph D. Darcy
*/
import java.util.regex.*;
- import sun.misc.DoubleConsts;
public class ParseHexFloatingPoint {
private ParseHexFloatingPoint(){}
public static final double infinityD = Double.POSITIVE_INFINITY;
--- 28,37 ----
*** 156,167 ****
input.replaceFirst("^0x", leadingZeros);
failures += testCase(input, 3.0);
}
long bigExponents [] = {
! 2*DoubleConsts.MAX_EXPONENT,
! 2*DoubleConsts.MIN_EXPONENT,
(long)Integer.MAX_VALUE-1,
(long)Integer.MAX_VALUE,
(long)Integer.MAX_VALUE+1,
--- 155,166 ----
input.replaceFirst("^0x", leadingZeros);
failures += testCase(input, 3.0);
}
long bigExponents [] = {
! 2*Double.MAX_EXPONENT,
! 2*Double.MIN_EXPONENT,
(long)Integer.MAX_VALUE-1,
(long)Integer.MAX_VALUE,
(long)Integer.MAX_VALUE+1,
*** 224,238 ****
new PairSD("0x1.1p-1075", Double.MIN_VALUE),
new PairSD("0x1.000000000001p-1075", Double.MIN_VALUE),
new PairSD("0x1.000000000000001p-1075", Double.MIN_VALUE),
// More subnormal rounding tests
! new PairSD("0x0.fffffffffffff7fffffp-1022", Math.nextDown(DoubleConsts.MIN_NORMAL)),
! new PairSD("0x0.fffffffffffff8p-1022", DoubleConsts.MIN_NORMAL),
! new PairSD("0x0.fffffffffffff800000001p-1022",DoubleConsts.MIN_NORMAL),
! new PairSD("0x0.fffffffffffff80000000000000001p-1022",DoubleConsts.MIN_NORMAL),
! new PairSD("0x1.0p-1022", DoubleConsts.MIN_NORMAL),
// Large value and overflow rounding tests
new PairSD("0x1.fffffffffffffp1023", Double.MAX_VALUE),
new PairSD("0x1.fffffffffffff0000000p1023", Double.MAX_VALUE),
--- 223,237 ----
new PairSD("0x1.1p-1075", Double.MIN_VALUE),
new PairSD("0x1.000000000001p-1075", Double.MIN_VALUE),
new PairSD("0x1.000000000000001p-1075", Double.MIN_VALUE),
// More subnormal rounding tests
! new PairSD("0x0.fffffffffffff7fffffp-1022", Math.nextDown(Double.MIN_NORMAL)),
! new PairSD("0x0.fffffffffffff8p-1022", Double.MIN_NORMAL),
! new PairSD("0x0.fffffffffffff800000001p-1022",Double.MIN_NORMAL),
! new PairSD("0x0.fffffffffffff80000000000000001p-1022",Double.MIN_NORMAL),
! new PairSD("0x1.0p-1022", Double.MIN_NORMAL),
// Large value and overflow rounding tests
new PairSD("0x1.fffffffffffffp1023", Double.MAX_VALUE),
new PairSD("0x1.fffffffffffff0000000p1023", Double.MAX_VALUE),