mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-06-06 14:43:46 +00:00
test case for unlinked nodes, commented out
This commit is contained in:
parent
856da21652
commit
ae9ab0741e
13
xmltest.cpp
13
xmltest.cpp
@ -943,6 +943,19 @@ int main( int /*argc*/, const char ** /*argv*/ )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
{
|
||||||
|
// Passes if assert doesn't fire.
|
||||||
|
XMLDocument xmlDoc;
|
||||||
|
|
||||||
|
xmlDoc.NewDeclaration();
|
||||||
|
xmlDoc.NewComment("Configuration file");
|
||||||
|
|
||||||
|
XMLElement *root = xmlDoc.NewElement("settings");
|
||||||
|
root->SetAttribute("version", 2);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
const char* xml = "<element> </element>";
|
const char* xml = "<element> </element>";
|
||||||
XMLDocument doc( true, COLLAPSE_WHITESPACE );
|
XMLDocument doc( true, COLLAPSE_WHITESPACE );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user