diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-29 16:27:46 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-29 16:27:46 +0000 |
commit | 1f62a006f121c6412892cac30ce0e74d18c55eb3 (patch) | |
tree | 96e36e56b9c37c7639a4190ad220583275411858 /tests/test.cpp | |
parent | 162962a7364a6c39a49f7936adee2a6d0cdb8da5 (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.cpp | 8 |
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__)
|