stringutilTests.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00012 /*
00013  * $Log$
00014  *
00015  */
00016 
00017 #ifndef stringutil_cpp
00018 #define stringutil_cpp
00019 
00020 #include <cppunit/ui/text/TestRunner.h>
00021 #include <cppunit/TextOutputter.h>
00022 #include <cppunit/extensions/TestFactoryRegistry.h>
00023 #include <cppunit/extensions/HelperMacros.h>
00024 #include <cppunit/TestAssert.h>
00025 
00026 #include <coil/stringutil.h>
00027 
00032 namespace stringutil
00033 {
00034   class stringutilTests
00035    : public CppUnit::TestFixture
00036   {
00037     CPPUNIT_TEST_SUITE(stringutilTests);
00038     CPPUNIT_TEST(test_toUpper);
00039     CPPUNIT_TEST(test_toLower);
00040     CPPUNIT_TEST(test_togetlinePortable);
00041     CPPUNIT_TEST(test_isEscaped);
00042     CPPUNIT_TEST(test_escape);
00043     CPPUNIT_TEST(test_unescape);
00044     CPPUNIT_TEST(test_eraseHeadBlank);
00045     CPPUNIT_TEST(test_eraseTailBlank);
00046     CPPUNIT_TEST(test_replaceString);
00047     CPPUNIT_TEST(test_split);
00048     CPPUNIT_TEST(test_toBool);
00049     CPPUNIT_TEST(test_isAbsolutePath);
00050     CPPUNIT_TEST(test_isURL);
00051     CPPUNIT_TEST(test_otos);
00052     CPPUNIT_TEST(test_stringTo);
00053     CPPUNIT_TEST(test_unique_sv);
00054     CPPUNIT_TEST(test_flatten);
00055     CPPUNIT_TEST(test_toArgv);
00056     CPPUNIT_TEST(test_sprintf);
00057     CPPUNIT_TEST_SUITE_END();
00058   
00059   private:
00060   
00061   public:
00062   
00066     stringutilTests()
00067     {
00068     }
00069     
00073     ~stringutilTests()
00074     {
00075     }
00076   
00080     virtual void setUp()
00081     {
00082     }
00083     
00087     virtual void tearDown()
00088     { 
00089     }
00090   
00091     /* test case */
00092     void test_toUpper()
00093     {
00094     }
00095     void test_toLower()
00096     {
00097     }
00098     void test_togetlinePortable()
00099     {
00100     }
00101     void test_isEscaped()
00102     {
00103     }
00104     void test_escape()
00105     {
00106     }
00107     void test_unescape()
00108     {
00109     }
00110     void test_eraseHeadBlank()
00111     {
00112     }
00113     void test_eraseTailBlank()
00114     {
00115     }
00116     void test_replaceString()
00117     {
00118     }
00119     void test_split()
00120     {
00121     }
00122     void test_toBool()
00123     {
00124     }
00125     void test_isAbsolutePath()
00126     {
00127     }
00128     void test_isURL()
00129     {
00130     }
00131     void test_otos()
00132     {
00133     }
00134     void test_stringTo()
00135     {
00136     }
00137     void test_unique_sv()
00138     {
00139     }
00140     void test_flatten()
00141     {
00142     }
00143     void test_toArgv()
00144     {
00145     }
00146     void test_sprintf()
00147     {
00148     }
00149 
00150   };
00151 }; // namespace stringutil
00152 
00153 /*
00154  * Register test suite
00155  */
00156 CPPUNIT_TEST_SUITE_REGISTRATION(stringutil::stringutilTests);
00157 
00158 #ifdef LOCAL_MAIN
00159 int main(int argc, char* argv[])
00160 {
00161     CppUnit::TextUi::TestRunner runner;
00162     runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
00163     CppUnit::Outputter* outputter = 
00164       new CppUnit::TextOutputter(&runner.result(), std::cout);
00165     runner.setOutputter(outputter);
00166     bool retcode = runner.run();
00167     return !retcode;
00168 }
00169 #endif // MAIN
00170 #endif // stringutil_cpp


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:07