summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);