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 1630 by tim, Thu Oct 21 21:31:39 2004 UTC vs.
Revision 1644 by tim, Mon Oct 25 22:46:19 2004 UTC

# Line 227 | Line 227 | void VectorTestCase::testOtherMemberFunctions(){
227      //test isNormalized();
228      CPPUNIT_ASSERT(a1.isNormalized());
229      CPPUNIT_ASSERT(!one.isNormalized());
230    
230  
231 +    //test getArray
232 +    double tempV[4];
233 +    v3.getArray(tempV);
234 +    CPPUNIT_ASSERT_DOUBLES_EQUAL(tempV[0], v3[0], oopse::epsilon);
235 +    CPPUNIT_ASSERT_DOUBLES_EQUAL(tempV[1], v3[1], oopse::epsilon);
236 +    CPPUNIT_ASSERT_DOUBLES_EQUAL(tempV[2], v3[2], oopse::epsilon);
237 +    CPPUNIT_ASSERT_DOUBLES_EQUAL(tempV[3], v3[3], oopse::epsilon);
238   }
239   void VectorTestCase::testOtherTemplateFunctions(){        
240      //test dot

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines