summaryrefslogtreecommitdiff
path: root/tests/test.cpp
diff options
context:
space:
mode:
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__)