diff options
Diffstat (limited to 'tests/test_xpath_api.cpp')
-rw-r--r-- | tests/test_xpath_api.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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
|