summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-22 19:13:35 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-22 19:13:35 +0000
commit8095117f5471a0aebf383d1d506066729fc63304 (patch)
tree493ae8633df522bf1eb1a01c87e262f612895c7b /tests
parent7c01cf8df31ed0636d12d907d32cfc3cfbc452ea (diff)
tests: Minor addition to PI parsing tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@442 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/test_parse.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp
index fb0dd23..400942f 100644
--- a/tests/test_parse.cpp
+++ b/tests/test_parse.cpp
@@ -50,6 +50,10 @@ TEST(parse_pi_error)
CHECK(doc.load(STR("<?name value"), flags).status == status_bad_pi);
CHECK(doc.load(STR("<?name value "), flags).status == status_bad_pi);
CHECK(doc.load(STR("<?name value "), flags).status == status_bad_pi);
+ CHECK(doc.load(STR("<?name value ?"), flags).status == status_bad_pi);
+ CHECK(doc.load(STR("<?name value ? "), flags).status == status_bad_pi);
+ CHECK(doc.load(STR("<?name value ? >"), flags).status == status_bad_pi);
+ CHECK(doc.load(STR("<?name value ? > "), flags).status == status_bad_pi);
}
CHECK(doc.load(STR("<?xx#?>"), parse_minimal | parse_pi).status == status_bad_pi);