- 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/tesselation_boundarytriangleunittest.cpp
r1aa81a r44becc 17 17 #include "tesselation.hpp" 18 18 #include "tesselation_boundarytriangleunittest.hpp" 19 20 #ifdef HAVE_TESTRUNNER 21 #include "UnitTestMain.hpp" 22 #endif /*HAVE_TESTRUNNER*/ 19 23 20 24 #define SPHERERADIUS 2. … … 191 195 CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection ); 192 196 }; 193 194 195 /********************************************** Main routine **************************************/196 197 int main(int argc, char **argv)198 {199 // Get the top level suite from the registry200 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();201 202 // Adds the test to the list of test to run203 CppUnit::TextUi::TestRunner runner;204 runner.addTest( suite );205 206 // Change the default outputter to a compiler error format outputter207 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),208 std::cerr ) );209 // Run the tests.210 bool wasSucessful = runner.run();211 212 // Return error code 1 if the one of test failed.213 return wasSucessful ? 0 : 1;214 };
Note:
See TracChangeset
for help on using the changeset viewer.
