From d8b256203c01eaa8ce7b54e296ff33bd1afaf583 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 31 May 2010 12:00:38 +0000 Subject: tests: Added more XPath tests based on recommendation errata git-svn-id: http://pugixml.googlecode.com/svn/trunk@483 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_xpath_operators.cpp | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'tests/test_xpath_operators.cpp') diff --git a/tests/test_xpath_operators.cpp b/tests/test_xpath_operators.cpp index 5c7c0e9..b834b95 100644 --- a/tests/test_xpath_operators.cpp +++ b/tests/test_xpath_operators.cpp @@ -2,10 +2,9 @@ #include "common.hpp" -TEST_XML(xpath_operators_arithmetic, "1023") +TEST(xpath_operators_arithmetic) { xml_node c; - xml_node n = doc.child(STR("node")); // incorrect unary operator CHECK_XPATH_FAIL(STR("-")); @@ -43,6 +42,17 @@ TEST_XML(xpath_operators_arithmetic, "1021021023") +{ + xml_node n = doc.child(STR("node")); // correct subtraction parsing, from W3C standard CHECK_XPATH_NUMBER(n, STR("foo-bar"), 10); -- cgit v1.2.3