experimented with print f vs. g. increased version

This commit is contained in:
Lee Thomason (grinliz)
2012-09-23 20:25:50 -07:00
parent e2bcb32494
commit fc6320e30a
5 changed files with 18 additions and 7 deletions

View File

@@ -951,7 +951,6 @@ int main( int /*argc*/, const char ** /*argv*/ )
const char* xml = "<element/>WOA THIS ISN'T GOING TO PARSE";
XMLDocument doc;
doc.Parse( xml, 10 );
//doc.Print();
XMLTest( "Set length of incoming data", doc.Error(), false );
}
@@ -981,6 +980,18 @@ int main( int /*argc*/, const char ** /*argv*/ )
XMLTest( "Whitespace all space", true, 0 == doc.FirstChildElement()->FirstChild() );
}
#if 0 // the question being explored is what kind of print to use:
// https://github.com/leethomason/tinyxml2/issues/63
{
const char* xml = "<element attrA='123456789.123456789' attrB='1.001e9'/>";
XMLDocument doc;
doc.Parse( xml );
doc.FirstChildElement()->SetAttribute( "attrA", 123456789.123456789 );
doc.FirstChildElement()->SetAttribute( "attrB", 1.001e9 );
doc.Print();
}
#endif
// ----------- Performance tracking --------------
{
#if defined( _MSC_VER )