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

Comparing trunk/OOPSE-3.0/test/math/Vector3TestCase.cpp (file contents):
Revision 1603 by tim, Tue Oct 19 21:28:55 2004 UTC vs.
Revision 1644 by tim, Mon Oct 25 22:46:19 2004 UTC

# Line 36 | Line 36 | void Vector3TestCase::testConstructors(){
36   }
37  
38   void Vector3TestCase::testConstructors(){
39 +    double b[] = {2.9, 3.2, 1.2};
40 +    Vector3d v(b);
41 +    CPPUNIT_ASSERT_DOUBLES_EQUAL(v.x(), 2.9, oopse::epsilon);
42 +    CPPUNIT_ASSERT_DOUBLES_EQUAL(v.y(), 3.2, oopse::epsilon);
43 +    CPPUNIT_ASSERT_DOUBLES_EQUAL(v.z(), 1.2, oopse::epsilon);    
44   }
45  
46   void Vector3TestCase::testArithmetic(){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines