MOAB: Mesh Oriented datABase  (version 5.4.1)
Vector3DTest Class Reference
+ Inheritance diagram for Vector3DTest:
+ Collaboration diagram for Vector3DTest:

Public Member Functions

 Vector3DTest ()
void test_default_constructor ()
void test_double_constructor ()
void test_copy_constructor ()
void throw_exception ()

Private Member Functions

 CPPUNIT_TEST_SUITE (Vector3DTest)
 CPPUNIT_TEST (test_default_constructor)
 CPPUNIT_TEST (test_double_constructor)
 CPPUNIT_TEST (test_copy_constructor)
 CPPUNIT_TEST_SUITE_END ()

Detailed Description

Definition at line 34 of file Vector3DTest.cpp.


Constructor & Destructor Documentation

Definition at line 44 of file Vector3DTest.cpp.

{}

Member Function Documentation

Definition at line 60 of file Vector3DTest.cpp.

References CPPUNIT_ASSERT, MBMesquite::Vector3D::x(), MBMesquite::Vector3D::y(), and MBMesquite::Vector3D::z().

    {
        MBMesquite::Vector3D v2( 3, 2, 1 );
        MBMesquite::Vector3D v( v2 );

        CPPUNIT_ASSERT( v.x() == 3 );
        CPPUNIT_ASSERT( v.y() == 2 );
        CPPUNIT_ASSERT( v.z() == 1 );
    }

Definition at line 53 of file Vector3DTest.cpp.

References CPPUNIT_ASSERT, MBMesquite::Vector3D::x(), MBMesquite::Vector3D::y(), and MBMesquite::Vector3D::z().

    {
        MBMesquite::Vector3D v( 3, 2, 1 );
        CPPUNIT_ASSERT( v.x() == 3 );
        CPPUNIT_ASSERT( v.y() == 2 );
        CPPUNIT_ASSERT( v.z() == 1 );
    }
void Vector3DTest::throw_exception ( ) [inline]

Definition at line 69 of file Vector3DTest.cpp.

References MBMesquite::Vector3D::x().

    {
        MBMesquite::Vector3D* v = NULL;
        double d                = v->x();
        std::cout << d << std::endl;
    }

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines