11/*
2- * Copyright (c) 1998, 2013 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1998, 2018 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -63,6 +63,7 @@ public class PrimitiveConversionTests {
6363 }
6464
6565 public static int testDoubleValue () {
66+ System .out .println ("--- testDoubleValue ---" );
6667 int failures = 0 ;
6768 for (BigInteger big : ALL_BIGINTEGER_CANDIDATES ) {
6869 double expected = Double .parseDouble (big .toString ());
@@ -71,14 +72,16 @@ public static int testDoubleValue() {
7172 // should be bitwise identical
7273 if (Double .doubleToRawLongBits (expected ) != Double
7374 .doubleToRawLongBits (actual )) {
74- System .out .println (big );
75+ System .out .format ("big: %s, expected: %f, actual: %f%n" ,
76+ big , expected , actual );
7577 failures ++;
7678 }
7779 }
7880 return failures ;
7981 }
8082
8183 public static int testFloatValue () {
84+ System .out .println ("--- testFloatValue ---" );
8285 int failures = 0 ;
8386 for (BigInteger big : ALL_BIGINTEGER_CANDIDATES ) {
8487 float expected = Float .parseFloat (big .toString ());
@@ -87,7 +90,8 @@ public static int testFloatValue() {
8790 // should be bitwise identical
8891 if (Float .floatToRawIntBits (expected ) != Float
8992 .floatToRawIntBits (actual )) {
90- System .out .println (big + " " + expected + " " + actual );
93+ System .out .format ("big: %s, expected: %f, actual: %f%n" ,
94+ big , expected , actual );
9195 failures ++;
9296 }
9397 }
0 commit comments