axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/output XSDElement.expected
Date Tue, 22 Feb 2005 14:50:00 GMT
dicka       2005/02/22 06:50:00

  Modified:    c/tests/auto_build/testcases/client/cpp XSDElementClient.cpp
                        XSDElementNilClient.cpp
               c/tests/auto_build/testcases/output XSDElement.expected
  Log:
  Corrections to XSDElement and XSDElementNil testcases.
  
  PR: AXISCPP-466
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.2       +3 -3      ws-axis/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp
  
  Index: XSDElementClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XSDElementClient.cpp	18 Feb 2005 17:00:21 -0000	1.1
  +++ XSDElementClient.cpp	22 Feb 2005 14:50:00 -0000	1.2
  @@ -118,10 +118,10 @@
   		printf("unsigned long=%d\n", ulResult);
   
   		fResult = ws->setGetDataFloat((xsd__float)35.3535888888);
  -		printf("float=%.9f\n", fResult); fflush(stdout);
  +		printf("float=%.5f\n", fResult); fflush(stdout);
   
   		dResult = ws->setGetDataDouble((xsd__double)70.7175888888);
  -		printf("double=%.9f\n", dResult); fflush(stdout);
  +		printf("double=%.5f\n", dResult); fflush(stdout);
   
   		dateResult = ws->setGetDateType(testDate);
   		strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", &dateResult);
  @@ -144,7 +144,7 @@
   		cout << "integer=" << intResult << endl;
   
   		decResult = ws->setGetDecimalType(929292929.5555555555555);
  -		cout << "decimal=" << decResult << endl;
  +        printf("decimal=%.5f\n", decResult); fflush(stdout);
   
   		b64Result = ws->setGetBase64BinaryType(b64Test);
   		cout << "base64Binary size=" << b64Result.__size << endl;
  
  
  
  1.2       +14 -3     ws-axis/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp
  
  Index: XSDElementNilClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XSDElementNilClient.cpp	18 Feb 2005 17:00:21 -0000	1.1
  +++ XSDElementNilClient.cpp	22 Feb 2005 14:50:00 -0000	1.2
  @@ -30,6 +30,17 @@
   #include <ctype.h>
   #include <iostream>
   
  +#ifdef WIN32
  +  // Bug in MS Visual C++ 6.0. Fixed in Visual C++ .Net version.
  +  // Cannot print an __int64 number with cout without this overloading
  +  std::ostream& operator<<(std::ostream& os, __int64 i )
  +  {
  +    char buf[20];
  +    sprintf(buf,"%I64d", i );
  +    os << buf;
  +    return os;
  +  }
  +#endif
   
   int main(int argc, char* argv[])
   {
  @@ -131,10 +142,10 @@
   		printf("unsigned long=%d\n", *ulResult);
   
   		fResult = ws->setGetDataFloat(&fInput);
  -		printf("float=%.9f\n", *fResult); fflush(stdout);
  +		printf("float=%.5f\n", *fResult); fflush(stdout);
   
   		dResult = ws->setGetDataDouble(&dInput);
  -		printf("double=%.9f\n", *dResult); fflush(stdout);
  +		printf("double=%.5f\n", *dResult); fflush(stdout);
   
   		dateResult = ws->setGetDateType(&testDate);
   		strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", dateResult);
  @@ -157,7 +168,7 @@
   		cout << "integer=" << *intResult << endl;
   
   		decResult = ws->setGetDecimalType(&decInput);
  -		cout << "decimal=" << *decResult << endl;
  +        printf("decimal=%.5f\n", *decResult); fflush(stdout);
   
   		b64Result = ws->setGetBase64BinaryType(&b64Test);
   		cout << "base64Binary size=" << b64Result->__size << endl;
  
  
  
  1.2       +4 -4      ws-axis/c/tests/auto_build/testcases/output/XSDElement.expected
  
  Index: XSDElement.expected
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/output/XSDElement.expected,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XSDElement.expected	18 Feb 2005 17:00:21 -0000	1.1
  +++ XSDElement.expected	22 Feb 2005 14:50:00 -0000	1.2
  @@ -7,15 +7,15 @@
   unsigned int=28
   long=35
   unsigned long=42
  -float=35.353588104
  -double=70.717589000
  +float=35.35359
  +double=70.71759
   date=Fri Nov 12 00:00:00 2004
   dateTime=Fri Nov 12 07:58:43 2004
  -time=Thu Jan 01 08:58:43 1970
  +time=Thu Jan 01 07:58:43 1970
   string=never odd or even
   small string=m
   integer=919191919
  -decimal=9.29293e+08
  +decimal=929292929.55556
   base64Binary size=41
   base64Binary data=<test><xml>some dod&y string</xml></test>
   hexBinary size=41
  
  
  

Mime
View raw message