MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Unit tests for ElementSampleQM class. More...
Go to the source code of this file.
Classes | |
class | ElemSampleQMTest |
Functions | |
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (ElemSampleQMTest,"ElemSampleQMTest") | |
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (ElemSampleQMTest,"Unit") | |
void | test_handle (Sample sample, size_t elem) |
Unit tests for ElementSampleQM class.
Definition in file ElemSampleQMTest.cpp.
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION | ( | ElemSampleQMTest | , |
"ElemSampleQMTest" | |||
) |
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION | ( | ElemSampleQMTest | , |
"Unit" | |||
) |
void test_handle | ( | Sample | sample, |
size_t | elem | ||
) |
Definition at line 52 of file ElemSampleQMTest.cpp.
References CPPUNIT_ASSERT_EQUAL, MBMesquite::Sample::dimension, MBMesquite::ElemSampleQM::elem(), MBMesquite::ElemSampleQM::handle(), MBMesquite::Sample::number, and MBMesquite::ElemSampleQM::sample().
Referenced by mb_higher_order_test(), and ElemSampleQMTest::test_handle_from_sample().
{ size_t handle = ElemSampleQM::handle( sample, elem ); CPPUNIT_ASSERT_EQUAL( sample.dimension, ElemSampleQM::sample( handle ).dimension ); CPPUNIT_ASSERT_EQUAL( sample.number, ElemSampleQM::sample( handle ).number ); CPPUNIT_ASSERT_EQUAL( elem, (size_t)ElemSampleQM::elem( handle ) ); }