Changeset 762 for trunk/test
- Timestamp:
- Feb 20, 2007, 8:18:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/matrix_test.cc
r680 r762 58 58 *error << "Testing matrix class" << std::endl; 59 59 bool ok = true; 60 utility::matrix unit3x3(3,3); 61 for (size_t i=0; i<unit3x3.rows(); ++i) 62 unit3x3(i,i)=1; 60 63 61 64 *error << "\tcopy constructor and operator!=" << std::endl; … … 78 81 std::remove("data/tmp_test_matrix.txt"); 79 82 80 *error << "\toperator* (double)" << std::endl;83 *error << "\toperator*=(double)" << std::endl; 81 84 utility::matrix m4(3,3,1); 82 85 m4 *= 9; … … 233 236 delete m_nan; 234 237 238 *error << "\toperator*=(matrix&)" << std::endl; 239 utility::matrix m6(unit3x3); 240 m6 *= m; 241 if (m6!=m) { 242 ok=false; 243 *error << "error operator*=(matrix) 1" << std::endl; 244 } 245 m6 *= unit3x3; 246 if (m6!=m) { 247 ok=false; 248 *error << "error operator*=(matrix) 2" << std::endl; 249 } 250 235 251 if (error!=&std::cerr) 236 252 delete error;
Note: See TracChangeset
for help on using the changeset viewer.