From f0f7ac697bddede3fd06bacde9eaa29ce59139b2 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 8 Nov 2009 19:05:05 +0000 Subject: 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 --- tests/test_xpath_api.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_xpath_api.cpp') 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 -- cgit v1.2.3