25 CPPUNIT_TEST_SUITE(mitkArrayTypeConversionTestSuite);
33 CPPUNIT_TEST_SUITE_END();
40 void setUp(
void)
override
47 void tearDown(
void)
override {}
48 void EqualArray_ReturnsTrue(
void)
50 CPPUNIT_ASSERT_EQUAL_MESSAGE(
51 "test if EqualArray method returns true for two equal arrays.",
true,
mitk::EqualArray(a, b, 3));
54 void EqualArray_ReturnsFalse(
void)
58 CPPUNIT_ASSERT_EQUAL_MESSAGE(
59 "test if EqualArray method returns false for two non-equal arrays.",
false,
mitk::EqualArray(a, b, 3));
62 void FillVector3D_CorrectlyFilled(
void)
68 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"test if FillVector3D correctly fills array types.",
true,
mitk::EqualArray(a, c, 3));
71 void FillVector4D_CorrectlyFilled(
void)
83 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"test if FillVector4D correctly fills array types.",
true,
mitk::EqualArray(e, f, 4));
bool EqualArray(TArrayType1 &arrayType1, TArrayType2 &arrayType2, int size, ScalarType eps=mitk::eps, bool verbose=false)
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
void FillVector3D(Tout &out, mitk::ScalarType x, mitk::ScalarType y, mitk::ScalarType z)
Test fixture for parameterized tests.
void FillVector4D(Tout &out, mitk::ScalarType x, mitk::ScalarType y, mitk::ScalarType z, mitk::ScalarType t)
MITKCORE_EXPORT const ScalarType eps