summaryrefslogtreecommitdiff
path: root/tests/test.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-29 16:27:46 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-29 16:27:46 +0000
commit1f62a006f121c6412892cac30ce0e74d18c55eb3 (patch)
tree96e36e56b9c37c7639a4190ad220583275411858 /tests/test.cpp
parent162962a7364a6c39a49f7936adee2a6d0cdb8da5 (diff)
tests: Added more Xalan tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@464 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test.cpp')
-rw-r--r--tests/test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test.cpp b/tests/test.cpp
index 1744e4f..d12278b 100644
--- a/tests/test.cpp
+++ b/tests/test.cpp
@@ -58,6 +58,8 @@ bool test_xpath_string(const pugi::xml_node& node, const pugi::char_t* query, co
{
pugi::xpath_query q(query);
+ // $$$ q.rettype() == string
+
return q.evaluate_string(node) == expected;
}
@@ -65,6 +67,8 @@ bool test_xpath_boolean(const pugi::xml_node& node, const pugi::char_t* query, b
{
pugi::xpath_query q(query);
+ // $$$ q.rettype() == boolean
+
return q.evaluate_boolean(node) == expected;
}
@@ -74,6 +78,8 @@ bool test_xpath_number(const pugi::xml_node& node, const pugi::char_t* query, do
{
pugi::xpath_query q(query);
+ // $$$ q.rettype() == number
+
double value = q.evaluate_number(node);
double absolute_error = fabs(value - expected);
@@ -85,6 +91,8 @@ bool test_xpath_number_nan(const pugi::xml_node& node, const pugi::char_t* query
{
pugi::xpath_query q(query);
+ // $$$ q.rettype() == number
+
double r = q.evaluate_number(node);
#if defined(_MSC_VER) || defined(__BORLANDC__)