summaryrefslogtreecommitdiff
path: root/tests/test_parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_parse.cpp')
-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);