From 9b743b4386ef9aa27f635bd01899ed54fe7a6dc7 Mon Sep 17 00:00:00 2001 From: jez_higgins <> Date: Wed, 17 Aug 2005 10:19:19 +0000 Subject: [PATCH] *** empty log message *** --- XPath/XPath.hpp | 2 +- test/XPath/arithmetic_test.cpp | 50 +++++++++++++++++----------------- test/XPath/execute_test.cpp | 2 +- test/XPath/relational_test.cpp | 8 +++--- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/XPath/XPath.hpp b/XPath/XPath.hpp index b83813e1..94471b16 100644 --- a/XPath/XPath.hpp +++ b/XPath/XPath.hpp @@ -16,7 +16,7 @@ DONE - xpath_ast.hpp DONE - xpath_ast_ids.hpp xpath_axis_enumerator.hpp DONE - xpath_compile_context.hpp -xpath_execution_context.hpp +DONE - xpath_execution_context.hpp xpath_expression.hpp xpath_function.hpp xpath_function_holder.hpp diff --git a/test/XPath/arithmetic_test.cpp b/test/XPath/arithmetic_test.cpp index 646368d3..840acfee 100644 --- a/test/XPath/arithmetic_test.cpp +++ b/test/XPath/arithmetic_test.cpp @@ -22,8 +22,8 @@ public: void test1() { - XPathExpression* p1 = new NumericValue >(1); - XPathExpression* p2 = new NumericValue >(2); + XPathExpression >* p1 = new NumericValue >(1); + XPathExpression >* p2 = new NumericValue >(2); XPathExpressionPtr add(new PlusOperator >(p1, p2)); assertEquals(1, add.use_count()); @@ -37,8 +37,8 @@ public: void test2() { - XPathExpression* p1 = new NumericValue >(1); - XPathExpression* p2 = new NumericValue >(2); + XPathExpression >* p1 = new NumericValue >(1); + XPathExpression >* p2 = new NumericValue >(2); XPathExpressionPtr minus(new MinusOperator >(p1, p2)); @@ -47,8 +47,8 @@ public: void test3() { - XPathExpression* p1 = new NumericValue >(3); - XPathExpression* p2 = new NumericValue >(2); + XPathExpression >* p1 = new NumericValue >(3); + XPathExpression >* p2 = new NumericValue >(2); XPathExpressionPtr mult(new MultiplyOperator >(p1, p2)); @@ -57,7 +57,7 @@ public: void test4() { - XPathExpression* mult = new MultiplyOperator >(new NumericValue >(4), new NumericValue >(2)); + XPathExpression >* mult = new MultiplyOperator >(new NumericValue >(4), new NumericValue >(2)); XPathExpressionPtr minus(new MinusOperator >(mult, new NumericValue >(2))); @@ -67,8 +67,8 @@ public: void test5() { - XPathExpression* p1 = new NumericValue >(12); - XPathExpression* p2 = new NumericValue >(2); + XPathExpression >* p1 = new NumericValue >(12); + XPathExpression >* p2 = new NumericValue >(2); XPathExpressionPtr div(new DivideOperator >(p1, p2)); @@ -77,8 +77,8 @@ public: void test6() { - XPathExpression* p1 = new NumericValue >(12); - XPathExpression* p2 = new NumericValue >(2); + XPathExpression >* p1 = new NumericValue >(12); + XPathExpression >* p2 = new NumericValue >(2); XPathExpressionPtr mod(new ModOperator >(p1, p2)); @@ -87,8 +87,8 @@ public: void test7() { - XPathExpression* p1 = new NumericValue >(11); - XPathExpression* p2 = new NumericValue >(2); + XPathExpression >* p1 = new NumericValue >(11); + XPathExpression >* p2 = new NumericValue >(2); XPathExpressionPtr div(new DivideOperator >(p1, p2)); @@ -97,8 +97,8 @@ public: void test8() { - XPathExpression* p1 = new NumericValue >(11); - XPathExpression* p2 = new NumericValue >(4); + XPathExpression >* p1 = new NumericValue >(11); + XPathExpression >* p2 = new NumericValue >(4); XPathExpressionPtr mod(new ModOperator >(p1, p2)); @@ -107,8 +107,8 @@ public: void test9() { - XPathExpression* p1 = new NumericValue >(5); - XPathExpression* p2 = new NumericValue >(2); + XPathExpression >* p1 = new NumericValue >(5); + XPathExpression >* p2 = new NumericValue >(2); XPathExpressionPtr mod(new ModOperator >(p1, p2)); @@ -117,8 +117,8 @@ public: void test10() { - XPathExpression* p1 = new NumericValue >(5); - XPathExpression* p2 = new NumericValue >(-2); + XPathExpression >* p1 = new NumericValue >(5); + XPathExpression >* p2 = new NumericValue >(-2); XPathExpressionPtr mod(new ModOperator >(p1, p2)); @@ -127,8 +127,8 @@ public: void test11() { - XPathExpression* p1 = new NumericValue >(-5); - XPathExpression* p2 = new NumericValue >(2); + XPathExpression >* p1 = new NumericValue >(-5); + XPathExpression >* p2 = new NumericValue >(2); XPathExpressionPtr mod(new ModOperator >(p1, p2)); @@ -137,8 +137,8 @@ public: void test12() { - XPathExpression* p1 = new NumericValue >(-5); - XPathExpression* p2 = new NumericValue >(-2); + XPathExpression >* p1 = new NumericValue >(-5); + XPathExpression >* p2 = new NumericValue >(-2); XPathExpressionPtr mod(new ModOperator >(p1, p2)); @@ -147,7 +147,7 @@ public: void test13() { - XPathExpression* p1 = new NumericValue >(5); + XPathExpression >* p1 = new NumericValue >(5); XPathExpressionPtr p2(new UnaryNegative >(p1)); assertEquals(-5.0, p2->evaluateAsNumber(dummy_), 0.0); @@ -155,7 +155,7 @@ public: void test14() { - XPathExpression* p1 = new NumericValue >(-5); + XPathExpression >* p1 = new NumericValue >(-5); XPathExpressionPtr p2(new UnaryNegative >(p1)); assertEquals(5.0, p2->evaluateAsNumber(dummy_), 0.0); diff --git a/test/XPath/execute_test.cpp b/test/XPath/execute_test.cpp index 8433c8f4..6c0d838e 100644 --- a/test/XPath/execute_test.cpp +++ b/test/XPath/execute_test.cpp @@ -59,7 +59,7 @@ public: XPathFunction(0, 0, args) { } virtual XPathValue* evaluate(const DOM::Node& context, - const ExecutionContext& executionContext) const + const ExecutionContext >& executionContext) const { return new StringValue >("test-" + context.getLocalName()); } // evaluate diff --git a/test/XPath/relational_test.cpp b/test/XPath/relational_test.cpp index 3d9ea2ac..7087fb01 100644 --- a/test/XPath/relational_test.cpp +++ b/test/XPath/relational_test.cpp @@ -47,8 +47,8 @@ public: void test4() { - XPathExpression* p1 = new StringValue >("charlie"); - XPathExpression* p2 = new StringValue >("charlie"); + XPathExpression >* p1 = new StringValue >("charlie"); + XPathExpression >* p2 = new StringValue >("charlie"); XPathExpressionPtr equals1(new EqualsOperator(p1, p2)); @@ -57,8 +57,8 @@ public: void test5() { - XPathExpression* p1 = new StringValue >("trousers"); - XPathExpression* p2 = new StringValue >("charlie"); + XPathExpression >* p1 = new StringValue >("trousers"); + XPathExpression >* p2 = new StringValue >("charlie"); XPathExpressionPtr equals1(new EqualsOperator(p1, p2));