diff options
author | Stephan Beyer <s-beyer@gmx.net> | 2016-01-24 14:03:02 +0100 |
---|---|---|
committer | Stephan Beyer <s-beyer@gmx.net> | 2016-01-24 14:05:44 +0100 |
commit | f7aa65db8a13d32da0586c125f6b9b67460af374 (patch) | |
tree | c389c399fd06571172a546aa65c761e234cd2310 /tests/test_parse.cpp | |
parent | 7f91301946ce05e79fdd2ca3e79071f79fc93ba3 (diff) |
Fix whitespace issues
Git warns when it finds "whitespace errors". This commit gets
rid of these whitespace errors for code and adoc files.
Diffstat (limited to 'tests/test_parse.cpp')
-rw-r--r-- | tests/test_parse.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp index 47f774e..68fd217 100644 --- a/tests/test_parse.cpp +++ b/tests/test_parse.cpp @@ -82,7 +82,7 @@ TEST(parse_pi_error) CHECK(doc.load_string(STR("<?name&"), flags).status == status_bad_pi); CHECK(doc.load_string(STR("<?name&?"), flags).status == status_bad_pi); } - + CHECK(doc.load_string(STR("<?xx#?>"), parse_fragment | parse_pi).status == status_bad_pi); CHECK(doc.load_string(STR("<?name&?>"), parse_fragment | parse_pi).status == status_bad_pi); CHECK(doc.load_string(STR("<?name& x?>"), parse_fragment | parse_pi).status == status_bad_pi); @@ -235,9 +235,9 @@ TEST(parse_ws_pcdata_skip) CHECK(!doc.first_child()); CHECK(doc.load_string(STR("<root> <node> </node> </root>"), parse_minimal)); - + xml_node root = doc.child(STR("root")); - + CHECK(root.first_child() == root.last_child()); CHECK(!root.first_child().first_child()); } @@ -855,7 +855,7 @@ TEST(parse_declaration_error) CHECK(doc.load_string(STR("<?xml>"), flags).status == status_bad_pi); CHECK(doc.load_string(STR("<?xml version='1>"), flags).status == status_bad_pi); } - + CHECK(doc.load_string(STR("<?xml version='1?>"), parse_fragment | parse_declaration).status == status_bad_attribute); CHECK(doc.load_string(STR("<foo><?xml version='1'?></foo>"), parse_fragment | parse_declaration).status == status_bad_pi); } |