summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 15:48:05 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 15:48:05 +0000
commit6d44879c5a01c10f8ce6687fa01676753225be7b (patch)
treefad7e492f545d225cbe88863076a297a7474a03f
parent012b712389792ad5916cc8c24f330c706822d9a4 (diff)
tests: Minor fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@691 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--tests/test_xpath_paths.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_xpath_paths.cpp b/tests/test_xpath_paths.cpp
index 829cac7..b6d7a4f 100644
--- a/tests/test_xpath_paths.cpp
+++ b/tests/test_xpath_paths.cpp
@@ -358,7 +358,7 @@ TEST_XML_FLAGS(xpath_paths_nodetest_principal, "<node attr='value'>pcdata<child/
CHECK_XPATH_NODESET(doc, STR("child::abra:*/attribute::abra:*/descendant-or-self::abra:*")); // attribute is not of element type
}
-TEST_XML(xpath_paths_absolute, "<node><foo><foo/><foo/></foo></node>")
+TEST_XML(xpath_paths_absolute, "<node attr='value'><foo><foo/><foo/></foo></node>")
{
xml_node c;
xml_node n = doc.child(STR("node"));
@@ -366,9 +366,9 @@ TEST_XML(xpath_paths_absolute, "<node><foo><foo/><foo/></foo></node>")
CHECK_XPATH_NODESET(c, STR("/foo"));
CHECK_XPATH_NODESET(n, STR("/foo"));
- CHECK_XPATH_NODESET(n, STR("/node/foo")) % 3;
- CHECK_XPATH_NODESET(n.child(STR("foo")), STR("/node/foo")) % 3;
- CHECK_XPATH_NODESET(na, STR("/node/foo")) % 3;
+ CHECK_XPATH_NODESET(n, STR("/node/foo")) % 4;
+ CHECK_XPATH_NODESET(n.child(STR("foo")), STR("/node/foo")) % 4;
+ CHECK_XPATH_NODESET(na, STR("/node/foo")) % 4;
CHECK_XPATH_NODESET(c, STR("/"));
CHECK_XPATH_NODESET(n, STR("/")) % 1;