You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2006/03/23 21:55:04 UTC

svn commit: r388266 - /xerces/c/branches/xerces-2.7/tests/XSValueTest/XSValueTest.cpp

Author: cargilld
Date: Thu Mar 23 12:55:02 2006
New Revision: 388266

URL: http://svn.apache.org/viewcvs?rev=388266&view=rev
Log:
Make getCanonical for float and double have consistent behaviour with getActual.

Modified:
    xerces/c/branches/xerces-2.7/tests/XSValueTest/XSValueTest.cpp

Modified: xerces/c/branches/xerces-2.7/tests/XSValueTest/XSValueTest.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/tests/XSValueTest/XSValueTest.cpp?rev=388266&r1=388265&r2=388266&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/tests/XSValueTest/XSValueTest.cpp (original)
+++ xerces/c/branches/xerces-2.7/tests/XSValueTest/XSValueTest.cpp Thu Mar 23 12:55:02 2006
@@ -1007,10 +1007,10 @@
     XSValue::XSValue_Data lex_iv_ran_v_4; lex_iv_ran_v_4.fValue.f_float = (float)0.0;
     lex_iv_ran_v_4.fValue.f_floatType.f_floatEnum = XSValue::DoubleFloatType_Zero;
 
-    const char lex_v_ran_iv_1_canrep[]="3.402823466E39";
-    const char lex_v_ran_iv_2_canrep[]="-3.402823466E39";
-    const char lex_v_ran_iv_3_canrep[]="1.175494351E-39";
-    const char lex_v_ran_iv_4_canrep[]="-1.175494351E-39";
+    const char lex_v_ran_iv_1_canrep[]="INF";  // 3.402823466E39";
+    const char lex_v_ran_iv_2_canrep[]="-INF"; //-3.402823466E39";
+    const char lex_v_ran_iv_3_canrep[]="0";    // 1.175494351E-39";
+    const char lex_v_ran_iv_4_canrep[]="0";    //-1.175494351E-39";
 
     const char lex_iv_1[]="12x.e+10";
     const char lex_iv_2[]="12.e+1x";
@@ -1194,10 +1194,10 @@
     const char lex_v_ran_iv_3[]="+2.2250738585072014e-329";
     const char lex_v_ran_iv_4[]="-2.2250738585072014e-329";
 
-    const char lex_v_ran_iv_1_canrep[]="1.7976931348623158E309";
-    const char lex_v_ran_iv_2_canrep[]="-1.7976931348623158E309";
-    const char lex_v_ran_iv_3_canrep[]="2.2250738585072014E-329";
-    const char lex_v_ran_iv_4_canrep[]="-2.2250738585072014E-329";
+    const char lex_v_ran_iv_1_canrep[]="INF";   // 1.7976931348623158E309";
+    const char lex_v_ran_iv_2_canrep[]="-INF";  //-1.7976931348623158E309";
+    const char lex_v_ran_iv_3_canrep[]="0";     // 2.2250738585072014E-329";
+    const char lex_v_ran_iv_4_canrep[]="0";     //-2.2250738585072014E-329";
 
     XSValue::XSValue_Data lex_iv_ran_v_1; lex_iv_ran_v_1.fValue.f_double = (double)0.0; 
     lex_iv_ran_v_1.fValue.f_doubleType.f_doubleEnum = XSValue::DoubleFloatType_PosINF;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org