hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
main.cpp
Go to the documentation of this file.
1 #include <cppunit/TestCaller.h>
2 #include <cppunit/TestRunner.h>
3 #include <cppunit/TestResult.h>
4 #include <cppunit/BriefTestProgressListener.h>
5 #include <cppunit/TestResultCollector.h>
6 #include <cppunit/ui/text/TestRunner.h>
7 #include "BoostTokenizerTest.hpp"
8 #include "MecabWordTypeTest.hpp"
9 
10 int main(int argc, char *argv[])
11 {
12  /*
13  refine_test::BoostTokenizerTest::setArguments("123 one");
14  refine_test::BoostTokenizerTest::_args = "123 one";
15 */
16  CppUnit::TestSuite suite;
17  CppUnit::TestResult controller;
18  CppUnit::TestResultCollector res;
19  controller.addListener(&res);
20  CppUnit::BriefTestProgressListener progressListener;
21  controller.addListener( &progressListener );
22 
23  suite.addTest( new CppUnit::TestCaller<refine_test::MecabWordTypeTest>( "testWordTypesCount", &refine_test::MecabWordTypeTest::testWordTypesCount ) );
24  suite.addTest( new CppUnit::TestCaller<refine_test::MecabWordTypeTest>( "testWordTypeNumber", &refine_test::MecabWordTypeTest::testWordTypeNumber ) );
25  suite.addTest( new CppUnit::TestCaller<refine_test::MecabWordTypeTest>( "testWordTypeDelimiter", &refine_test::MecabWordTypeTest::testWordTypeDelimiter ) );
26  suite.addTest( new CppUnit::TestCaller<refine_test::MecabWordTypeTest>( "testWordTypePunctuation", &refine_test::MecabWordTypeTest::testWordTypePunctuation ) );
27  suite.addTest( new CppUnit::TestCaller<refine_test::MecabWordTypeTest>( "testWordTypeWord", &refine_test::MecabWordTypeTest::testWordTypeWord ) );
28  suite.addTest( new CppUnit::TestCaller<refine_test::MecabWordTypeTest>( "testWordTypeUndefined", &refine_test::MecabWordTypeTest::testWordTypeUndefined ) );
29  suite.addTest( new CppUnit::TestCaller<refine_test::MecabWordTypeTest>( "testTokensCount", &refine_test::MecabWordTypeTest::testTokensCount ) );
30 
31  suite.addTest( new CppUnit::TestCaller<refine_test::BoostTokenizerTest>( "testTokensCount", &refine_test::BoostTokenizerTest::testTokensCount) );
32  suite.addTest( new CppUnit::TestCaller<refine_test::BoostTokenizerTest>( "testTokensValues", &refine_test::BoostTokenizerTest::testTokensValues) );
33  suite.addTest( new CppUnit::TestCaller<refine_test::BoostTokenizerTest>( "testTokensOffsets", &refine_test::BoostTokenizerTest::testTokensOffsets) );
34  suite.addTest( new CppUnit::TestCaller<refine_test::BoostTokenizerTest>( "testTokensLenghts", &refine_test::BoostTokenizerTest::testTokensLenghts) );
35  suite.addTest( new CppUnit::TestCaller<refine_test::BoostTokenizerTest>( "testCustomDelimiters", &refine_test::BoostTokenizerTest::testCustomDelimiters) );
36  suite.run( &controller);
37  return 0;
38 }