axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject svn commit: r381383 - in /webservices/axis/trunk/c/tests/auto_build/testcases: client/cpp/XSDElementClient.cpp client/cpp/XSDElementNilClient.cpp output/XSDElement.expected output/XSDElementNil.expected
Date Mon, 27 Feb 2006 16:59:41 GMT
Author: dicka
Date: Mon Feb 27 08:59:33 2006
New Revision: 381383

URL: http://svn.apache.org/viewcvs?rev=381383&view=rev
Log:
Correct XSDElement and XSDElementNil testcases to use the correct precision for float and
double, respectively 6 and 10 digit precision.

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp
    webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElement.expected
    webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElementNil.expected

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp?rev=381383&r1=381382&r2=381383&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp Mon
Feb 27 08:59:33 2006
@@ -142,10 +142,10 @@
 		cout << "unsigned long=" << ulResult << endl;
 
 		fResult = ws->setGetDataFloat((xsd__float)35.3535888888);
-		printf("float=%.5f\n", fResult); fflush(stdout);
+		printf("float=%.6g\n", fResult); fflush(stdout);
 
 		dResult = ws->setGetDataDouble((xsd__double)70.7175888888);
-		printf("double=%.5f\n", dResult); fflush(stdout);
+		printf("double=%.10g\n", dResult); fflush(stdout);
 
         durationResult = ws->setGetDataDurationType((xsd__duration)123456789);
         cout << "duration=" << durationResult << endl;

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp?rev=381383&r1=381382&r2=381383&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp
(original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp
Mon Feb 27 08:59:33 2006
@@ -200,18 +200,18 @@
 			cout << "unsigned long nil=NULL" << endl;
 
 		fResult = ws->setGetDataFloat(&fInput);
-		printf("float=%.5f\n", *fResult); fflush(stdout);
+		printf("float=%.6g\n", *fResult); fflush(stdout);
 		fResult = ws->setGetDataFloat(NULL);
 		if(fResult) {
-			printf("float nil=%.5f\n", *fResult); fflush(stdout);
+			printf("float nil=%.6g\n", *fResult); fflush(stdout);
 		} else
 			cout << "float nil=NULL" << endl;
 
 		dResult = ws->setGetDataDouble(&dInput);
-		printf("double=%.5f\n", *dResult); fflush(stdout);
+		printf("double=%.10g\n", *dResult); fflush(stdout);
 		dResult = ws->setGetDataDouble(NULL);
 		if(dResult) {
-			printf("double nil=%.5f\n", *dResult); fflush(stdout);
+			printf("double nil=%.10g\n", *dResult); fflush(stdout);
 		} else
 			cout << "double nil=NULL" << endl;
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElement.expected
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElement.expected?rev=381383&r1=381382&r2=381383&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElement.expected (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElement.expected Mon Feb
27 08:59:33 2006
@@ -10,8 +10,8 @@
 MaxInclusive long=9223372036854775807
 MinInclusive long=-9223372036854775808
 unsigned long=42
-float=35.35359
-double=70.71759
+float=35.3536
+double=70.71758889
 duration=123456789
 date=Fri Nov 12 2004
 dateTime=Fri Nov 12 07:58:43 2004

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElementNil.expected
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElementNil.expected?rev=381383&r1=381382&r2=381383&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElementNil.expected (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/output/XSDElementNil.expected Mon
Feb 27 08:59:33 2006
@@ -16,9 +16,9 @@
 long nil=NULL
 unsigned long=42
 unsigned long nil=NULL
-float=35.35359
+float=35.3536
 float nil=NULL
-double=70.71759
+double=70.71758889
 double nil=NULL
 duration=123456789
 date=Fri Nov 12 2004



Mime
View raw message