summaryrefslogtreecommitdiff
path: root/tests/test_parse.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-04 13:07:35 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-04 13:07:35 +0000
commit6df3609007d59dfa5f6cc218902da49ff258befc (patch)
tree37dcabafa260e3bb3481e8bb957fc6ff1b681b28 /tests/test_parse.cpp
parent05c651d87f95268823f4f0ed5a9206b5cd734507 (diff)
tests: Added even more tests for better code coverage
git-svn-id: http://pugixml.googlecode.com/svn/trunk@627 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_parse.cpp')
-rw-r--r--tests/test_parse.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp
index 5b3cf3f..2fcaf6e 100644
--- a/tests/test_parse.cpp
+++ b/tests/test_parse.cpp
@@ -35,6 +35,18 @@ TEST(parse_pi_parse)
CHECK_STRING(pi2.value(), STR("value"));
}
+TEST(parse_pi_parse_spaces)
+{
+ xml_document doc;
+ CHECK(doc.load(STR("<?target \r\n\t value ?>"), parse_minimal | parse_pi));
+
+ xml_node pi = doc.first_child();
+
+ CHECK(pi.type() == node_pi);
+ CHECK_STRING(pi.name(), STR("target"));
+ CHECK_STRING(pi.value(), STR("value "));
+}
+
TEST(parse_pi_error)
{
xml_document doc;