Changeset 71910a for molecuilder/src/unittests/ActOnAllUnitTest.cpp
- Timestamp:
- Apr 7, 2010, 3:45:38 PM (16 years ago)
- Children:
- 0f55b2
- Parents:
- 770138
- File:
-
- 1 edited
-
molecuilder/src/unittests/ActOnAllUnitTest.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/ActOnAllUnitTest.cpp
r770138 r71910a 99 99 }; 100 100 101 #if 0 102 103 // Unitttest deactivated for now... 104 // Reasons: 105 // Vector::MakeNormalVector has been removed and is now part of Plane class 106 // VectorList::ActOnAll is in the test directory and seems to be used only for unittests 107 // MakeNormal never depended on the input Vector except in the case of linear dependence (i.e. failure) 108 // 109 // TODO: Rethink what exactely is being tested at this point and introduce a new unittest for the 110 // tested behaviour. Most likely this should result in a thourough unittest of the plane class 111 101 112 /** UnitTest for VectorList::ActOnAll() and Vector::MakeNormalVector() 102 113 */ … … 113 124 // check that x and y components are zero 114 125 for (ListOfVectors::iterator Runner = VL.Vectors.begin(); Runner != VL.Vectors.end(); Runner++) { 115 CPPUNIT_ASSERT_EQUAL( (*Runner)-> x[0], 0. );116 CPPUNIT_ASSERT_EQUAL( (*Runner)-> x[1], 0. );126 CPPUNIT_ASSERT_EQUAL( (*Runner)->at(0) , 0. ); 127 CPPUNIT_ASSERT_EQUAL( (*Runner)->at(1) , 0. ); 117 128 } 118 129 }; 130 131 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
