mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-14 19:31:23 +00:00
Fix whitespaces in xmltest.cpp
This commit is contained in:
parent
2f0d173f94
commit
8e85afa406
30
xmltest.cpp
30
xmltest.cpp
@ -1462,21 +1462,21 @@ int main( int argc, const char ** argv )
|
|||||||
|
|
||||||
{
|
{
|
||||||
// Check that declarations are parsed only as the FirstChild
|
// Check that declarations are parsed only as the FirstChild
|
||||||
const char* xml0 = "<?xml version=\"1.0\" ?>"
|
const char* xml0 = "<?xml version=\"1.0\" ?>"
|
||||||
" <!-- xml version=\"1.1\" -->"
|
" <!-- xml version=\"1.1\" -->"
|
||||||
"<first />";
|
"<first />";
|
||||||
const char* xml1 = "<?xml version=\"1.0\" ?>"
|
const char* xml1 = "<?xml version=\"1.0\" ?>"
|
||||||
" <?xml version=\"1.1\" ?>"
|
" <?xml version=\"1.1\" ?>"
|
||||||
"<first />";
|
"<first />";
|
||||||
const char* xml2 = "<first />"
|
const char* xml2 = "<first />"
|
||||||
"<?xml version=\"1.0\" ?>";
|
"<?xml version=\"1.0\" ?>";
|
||||||
XMLDocument doc;
|
XMLDocument doc;
|
||||||
doc.Parse(xml0);
|
doc.Parse(xml0);
|
||||||
XMLTest("Test that the code changes do not affect normal parsing", doc.Error(), false);
|
XMLTest("Test that the code changes do not affect normal parsing", doc.Error(), false);
|
||||||
doc.Parse(xml1);
|
doc.Parse(xml1);
|
||||||
XMLTest("Test that the second declaration throws an error", doc.Error(), true);
|
XMLTest("Test that the second declaration throws an error", doc.Error(), true);
|
||||||
doc.Parse(xml2);
|
doc.Parse(xml2);
|
||||||
XMLTest("Test that declaration after a child throws an error", doc.Error(), true);
|
XMLTest("Test that declaration after a child throws an error", doc.Error(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------- Performance tracking --------------
|
// ----------- Performance tracking --------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user