Changeset 44becc for molecuilder/src/unittests/analysisbondsunittest.cpp
- Timestamp:
- Feb 25, 2010, 2:17:15 PM (16 years ago)
- Children:
- 0de871, 36c5cf
- Parents:
- 1aa81a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/analysisbondsunittest.cpp
r1aa81a r44becc 24 24 #include "molecule.hpp" 25 25 #include "periodentafel.hpp" 26 27 #ifdef HAVE_TESTRUNNER 28 #include "UnitTestMain.hpp" 29 #endif /*HAVE_TESTRUNNER*/ 26 30 27 31 /********************************************** Test classes **************************************/ … … 163 167 CPPUNIT_ASSERT_EQUAL( 0. , Max ); 164 168 }; 165 166 167 /********************************************** Main routine **************************************/168 169 int main(int argc, char **argv)170 {171 // Get the top level suite from the registry172 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();173 174 // Adds the test to the list of test to run175 CppUnit::TextUi::TestRunner runner;176 runner.addTest( suite );177 178 // Change the default outputter to a compiler error format outputter179 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),180 std::cerr ) );181 // Run the tests.182 bool wasSucessful = runner.run();183 184 // Return error code 1 if the one of test failed.185 return wasSucessful ? 0 : 1;186 };
Note:
See TracChangeset
for help on using the changeset viewer.
