MOAB: Mesh Oriented datABase
(version 5.4.1)
|
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 () |
Definition at line 34 of file Vector3DTest.cpp.
Vector3DTest::Vector3DTest | ( | ) | [inline] |
Definition at line 44 of file Vector3DTest.cpp.
{}
Vector3DTest::CPPUNIT_TEST | ( | test_default_constructor | ) | [private] |
Vector3DTest::CPPUNIT_TEST | ( | test_double_constructor | ) | [private] |
Vector3DTest::CPPUNIT_TEST | ( | test_copy_constructor | ) | [private] |
Vector3DTest::CPPUNIT_TEST_SUITE | ( | Vector3DTest | ) | [private] |
Vector3DTest::CPPUNIT_TEST_SUITE_END | ( | ) | [private] |
void Vector3DTest::test_copy_constructor | ( | ) | [inline] |
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 ); }
void Vector3DTest::test_default_constructor | ( | ) | [inline] |
Definition at line 46 of file Vector3DTest.cpp.
References CPPUNIT_ASSERT, MBMesquite::Vector3D::x(), MBMesquite::Vector3D::y(), and MBMesquite::Vector3D::z().
{ MBMesquite::Vector3D v; CPPUNIT_ASSERT( v.x() == 0 ); CPPUNIT_ASSERT( v.y() == 0 ); CPPUNIT_ASSERT( v.z() == 0 ); }
void Vector3DTest::test_double_constructor | ( | ) | [inline] |
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; }