Changeset a9b2a0a for molecuilder/src/unittests/ActOnAllUnitTest.cpp
- Timestamp:
- Oct 27, 2009, 4:11:22 PM (16 years ago)
- Children:
- 069034
- Parents:
- 55a71b
- File:
-
- 1 edited
-
molecuilder/src/unittests/ActOnAllUnitTest.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/ActOnAllUnitTest.cpp
r55a71b ra9b2a0a 62 62 63 63 // scaling by value 64 VL.ActOnAll( (void (Vector::*)( double)) &Vector::Scale, 2. );64 VL.ActOnAll( (void (Vector::*)(const double)) &Vector::Scale, 2. ); 65 65 CPPUNIT_ASSERT_EQUAL( VL == Ref , false ); 66 66 67 VL.ActOnAll( (void (Vector::*)( double)) &Vector::Scale, 0.5 );67 VL.ActOnAll( (void (Vector::*)(const double)) &Vector::Scale, 0.5 ); 68 68 CPPUNIT_ASSERT_EQUAL( VL == Ref , true ); 69 69 70 70 // scaling by ref 71 VL.ActOnAll( (void (Vector::*)( double *)) &Vector::Scale,&factor );71 VL.ActOnAll( (void (Vector::*)(const double * const)) &Vector::Scale, (const double * const)&factor ); 72 72 CPPUNIT_ASSERT_EQUAL( VL == Ref , false ); 73 73 74 VL.ActOnAll( (void (Vector::*)( double *)) &Vector::Scale,&inverse );74 VL.ActOnAll( (void (Vector::*)(const double * const)) &Vector::Scale, (const double * const)&inverse ); 75 75 CPPUNIT_ASSERT_EQUAL( VL == Ref , true ); 76 76 … … 82 82 inverses[i] = 1./factors[i]; 83 83 } 84 VL.ActOnAll( (void (Vector::*)( double **)) &Vector::Scale,&factors );84 VL.ActOnAll( (void (Vector::*)(const double ** const)) &Vector::Scale, (const double ** const)&factors ); 85 85 CPPUNIT_ASSERT_EQUAL( VL == Ref , false ); 86 86 87 VL.ActOnAll( (void (Vector::*)( double **)) &Vector::Scale,&inverses );87 VL.ActOnAll( (void (Vector::*)(const double ** const)) &Vector::Scale, (const double ** const)&inverses ); 88 88 CPPUNIT_ASSERT_EQUAL( VL == Ref , true ); 89 89 };
Note:
See TracChangeset
for help on using the changeset viewer.
