arabica/test/XPath_silly/main.cpp

45 lines
1.9 KiB
C++
Raw Normal View History

2005-09-08 23:41:36 +02:00
#ifdef _MSC_VER
#pragma warning(disable:4224 4267)
#endif
2005-10-12 01:46:19 +02:00
#include "../CppUnit/TestRunner.hpp"
2005-09-08 23:41:36 +02:00
#include "../CppUnit/textui/TextTestResult.h"
#include "../CppUnit/framework/Test.h"
#include "../CppUnit/framework/TestSuite.h"
#include "../XPath/value_test.hpp"
2005-10-12 01:13:34 +02:00
#include "../XPath/arithmetic_test.hpp"
2005-10-12 01:46:19 +02:00
#include "../XPath/relational_test.hpp"
#include "../XPath/logical_test.hpp"
2005-10-12 10:24:27 +02:00
#include "../XPath/axis_enumerator_test.hpp"
2005-10-12 10:33:13 +02:00
#include "../XPath/node_test_test.hpp"
2005-10-12 10:43:43 +02:00
#include "../XPath/step_test.hpp"
2005-10-12 10:51:39 +02:00
#include "../XPath/parse_test.hpp"
2005-10-16 00:45:24 +02:00
#include "../XPath/execute_test.hpp"
2005-09-08 23:41:36 +02:00
#include "../silly_string/silly_string.hpp"
template<> class Arabica::default_string_adaptor<silly_string> : public silly_string_adaptor { };
2005-09-08 23:41:36 +02:00
/////////////////////////////////////////
int main(int argc, char** argv)
{
std::cout << "Hello" << std::endl;
TestRunner runner;
runner.addTest("ValueTest", ValueTest_suite<silly_string, Arabica::default_string_adaptor<silly_string> >());
2005-10-12 01:13:34 +02:00
runner.addTest("ArithmeticTest", ArithmeticTest_suite<silly_string, Arabica::default_string_adaptor<silly_string> >());
2005-10-12 01:46:19 +02:00
runner.addTest("RelationalTest", RelationalTest_suite<silly_string, Arabica::default_string_adaptor<silly_string> >());
runner.addTest("LogicalTest", LogicalTest_suite<silly_string, Arabica::default_string_adaptor<silly_string> >());
2005-10-12 10:24:27 +02:00
runner.addTest("AxisEnumeratorTest", AxisEnumeratorTest_suite<silly_string, Arabica::default_string_adaptor<silly_string> >());
2005-10-12 10:33:13 +02:00
runner.addTest("NodeTestTest", NodeTestTest_suite<silly_string, Arabica::default_string_adaptor<silly_string> >());
2005-10-12 10:43:43 +02:00
runner.addTest("StepTest", StepTest_suite<silly_string, Arabica::default_string_adaptor<silly_string> >());
2005-10-12 10:51:39 +02:00
runner.addTest("ParseTest", ParseTest_suite<silly_string, Arabica::default_string_adaptor<silly_string> >());
2005-10-16 00:45:24 +02:00
runner.addTest("ExecuteTest", ExecuteTest_suite<silly_string, Arabica::default_string_adaptor<silly_string> >());
2005-09-08 23:41:36 +02:00
runner.run(argc, argv);
} // main