changeset 476:ab13e29156f7

7017644: test/java/lang/Double/ParseDouble.java - removes checks of the returned value Reviewed-by: darcy
author alanb
date Mon, 07 Feb 2011 17:57:27 +0000
parents d00080320e43
children 5226ab539b05 cc7b3586b973
files test/java/lang/Double/ParseDouble.java
diffstat 1 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/Double/ParseDouble.java	Sun Feb 06 19:17:34 2011 +0000
+++ b/test/java/lang/Double/ParseDouble.java	Mon Feb 07 17:57:27 2011 +0000
@@ -564,7 +564,7 @@
         // An ulp is the same for all subnormal values
         BigDecimal ulp_BD = new BigDecimal(Double.MIN_VALUE);
 
-        System.out.println("Testing subnormal powers of two.");
+        // Test subnormal powers of two
         for(int i = -1074; i <= -1022; i++) {
             double d = Math.scalb(1.0, i);
 
@@ -578,16 +578,6 @@
 
             double convertedLowerBound = Double.parseDouble(lowerBound.toString());
             double convertedUpperBound = Double.parseDouble(upperBound.toString());
-
-            if (convertedLowerBound != d) {
-                System.out.printf("Exponent %d, unexpected lower bound converted to %a, not %a.%n",
-                                  i, convertedLowerBound, d);
-            }
-
-            if (convertedUpperBound != d) {
-                System.out.printf("Exponent %d, unexpected upper bound converted to %a, not %a.%n",
-                                  i, convertedUpperBound, d);
-            }
         }
     }