mirror of https://github.com/AxioDL/tinyxml2.git
Add test for lead non-alpha characters in attribute names.
This commit is contained in:
parent
980e535aae
commit
23e7ae6085
|
@ -1034,6 +1034,13 @@ int main( int /*argc*/, const char ** /*argv*/ )
|
|||
XMLTest( "Non-alpha element lead letter parses.", doc.Error(), false );
|
||||
}
|
||||
|
||||
{
|
||||
const char* xml = "<element _attr1=\"foo\" :attr2=\"bar\"></element>";
|
||||
XMLDocument doc;
|
||||
doc.Parse(xml);
|
||||
XMLTest("Non-alpha attribute lead character parses.", doc.Error(), false);
|
||||
}
|
||||
|
||||
{
|
||||
const char* xml = "<element/>WOA THIS ISN'T GOING TO PARSE";
|
||||
XMLDocument doc;
|
||||
|
|
Loading…
Reference in New Issue