mirror of https://github.com/AxioDL/tinyxml2.git
whitespace tests and review
This commit is contained in:
parent
62d1c5a739
commit
0fa8299d99
|
@ -966,6 +966,13 @@ int main( int /*argc*/, const char ** /*argv*/ )
|
|||
}
|
||||
}
|
||||
|
||||
{
|
||||
const char* xml = "<element> </element>";
|
||||
XMLDocument doc( true, COLLAPSE_WHITESPACE );
|
||||
doc.Parse( xml );
|
||||
XMLTest( "Whitespace all space", true, 0 == doc.FirstChildElement()->FirstChild() );
|
||||
}
|
||||
|
||||
// ----------- Performance tracking --------------
|
||||
{
|
||||
#if defined( _MSC_VER )
|
||||
|
|
Loading…
Reference in New Issue