mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-06-07 15:13:28 +00:00
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 --------------
|
// ----------- Performance tracking --------------
|
||||||
{
|
{
|
||||||
#if defined( _MSC_VER )
|
#if defined( _MSC_VER )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user