summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-12 07:35:08 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-12 07:35:08 +0000
commit1a007d66e619f0c201efcf7175c2544579c3a8c9 (patch)
treed43b2a69f3a067a51fa6a1ca9566d20f0d985dd5 /tests
parent0ed895d79c77979e2721822020dbf386da7a0747 (diff)
tests: Added non top-level declaration test
git-svn-id: http://pugixml.googlecode.com/svn/trunk@516 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/test_parse.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp
index 9c94687..7d4958a 100644
--- a/tests/test_parse.cpp
+++ b/tests/test_parse.cpp
@@ -577,6 +577,7 @@ TEST(parse_declaration_error)
}
CHECK(doc.load(STR("<?xml version='1?>"), parse_minimal | parse_declaration).status == status_bad_attribute);
+ CHECK(doc.load(STR("<foo><?xml version='1'?></foo>"), parse_minimal | parse_declaration).status == status_bad_pi);
}
TEST(parse_empty)