Skip to content
Snippets Groups Projects
Commit 45b6315d authored by Arseny Kapoulkine's avatar Arseny Kapoulkine
Browse files

tests: Add a coverage test for unspecified_bool

It's unfortunate that we can even do that...

git-svn-id: https://pugixml.googlecode.com/svn/trunk@1068 99668b35-9821-0410-8761-19e4c4f06640
parent 1b8b8790
No related branches found
No related tags found
No related merge requests found
......@@ -1043,3 +1043,19 @@ TEST_XML(dom_node_children_attributes, "<node1 attr1='value1' attr2='value2' /><
CHECK(r4.begin() == xml_attribute_iterator());
CHECK(r4.end() == xml_attribute_iterator());
}
TEST_XML(dom_unspecified_bool_coverage, "<node attr='value'>text</node>")
{
xml_node node = doc.first_child();
node(0);
node.first_attribute()(0);
node.text()(0);
#ifndef PUGIXML_NO_XPATH
xpath_query q(STR("/node"));
q(0);
q.evaluate_node(doc)(0);
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment