From 1f62a006f121c6412892cac30ce0e74d18c55eb3 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sat, 29 May 2010 16:27:46 +0000 Subject: tests: Added more Xalan tests git-svn-id: http://pugixml.googlecode.com/svn/trunk@464 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test.cpp') 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__) -- cgit v1.2.3