ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/test/math/VectorTestCase.cpp
(Generate patch)

Comparing trunk/OOPSE-3.0/test/math/VectorTestCase.cpp (file contents):
Revision 1629 by tim, Tue Oct 19 21:28:55 2004 UTC vs.
Revision 1630 by tim, Thu Oct 21 21:31:39 2004 UTC

# Line 194 | Line 194 | void VectorTestCase::testAccessEntries(){
194      //test () operator
195      CPPUNIT_ASSERT_DOUBLES_EQUAL(v3(0) , 4.0, oopse::epsilon);
196  
197 +    Vec4 a1;
198 +    double *pa1 = a1.getArrayPointer();
199 +    
200 +    pa1[0] = 4.0;
201 +    pa1[1] = 1.0;
202 +    pa1[2] = 3.0;
203 +    pa1[3] = 2.0;        
204 +
205 +    CPPUNIT_ASSERT(a1 == v3);    
206   }
207  
208   void VectorTestCase::testOtherMemberFunctions(){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines