summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 19:05:05 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 19:05:05 +0000
commitf0f7ac697bddede3fd06bacde9eaa29ce59139b2 (patch)
treeb520d825f34dddda9de8ee014bf1d125002bcf8a /tests
parent85f97d8e0842d7a4cb08ad997140df4d61be5440 (diff)
XPath: Added xpath_query::return_type() function, fixed evaluate_node_set documentation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@232 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xpath_api.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp
index cd8c7e1..665e7e9 100644
--- a/tests/test_xpath_api.cpp
+++ b/tests/test_xpath_api.cpp
@@ -143,4 +143,12 @@ TEST(xpath_api_evaluate_node_set)
}
}
+TEST(xpath_api_return_type)
+{
+ CHECK(xpath_query("node").return_type() == xpath_type_node_set);
+ CHECK(xpath_query("1").return_type() == xpath_type_number);
+ CHECK(xpath_query("'s'").return_type() == xpath_type_string);
+ CHECK(xpath_query("true()").return_type() == xpath_type_boolean);
+}
+
#endif