MOAB: Mesh Oriented datABase  (version 5.2.1)
ElemSampleQMTest.cpp File Reference

Unit tests for ElementSampleQM class. More...

#include "Mesquite.hpp"
#include "ElemSampleQM.hpp"
#include <cppunit/extensions/HelperMacros.h>
+ Include dependency graph for ElemSampleQMTest.cpp:

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)

Detailed Description

Unit tests for ElementSampleQM class.

Author:
Jason Kraftcheck

Definition in file ElemSampleQMTest.cpp.


Function Documentation

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 ) );
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines