ITK  5.2.0
Insight Toolkit
Namespaces | Macros
itkGTestPredicate.h File Reference
#include "gtest/gtest.h"
#include "itkNumericTraits.h"
#include <cmath>
+ Include dependency graph for itkGTestPredicate.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 itk
 
 itk::GTest
 
 itk::GTest::Predicate
 

Macros

#define ITK_EXPECT_VECTOR_NEAR(val1, val2, rmsError)   EXPECT_PRED_FORMAT3(itk::GTest::Predicate::VectorDoubleRMSPredFormat, val1, val2, rmsError)
 

Functions

template<typename T1 , typename T2 >
inline ::testing::AssertionResult itk::GTest::Predicate::VectorDoubleRMSPredFormat (const char *expr1, const char *expr2, const char *rmsErrorExpr, const T1 &val1, const T2 &val2, double rmsError)
 

Macro Definition Documentation

◆ ITK_EXPECT_VECTOR_NEAR

#define ITK_EXPECT_VECTOR_NEAR (   val1,
  val2,
  rmsError 
)    EXPECT_PRED_FORMAT3(itk::GTest::Predicate::VectorDoubleRMSPredFormat, val1, val2, rmsError)

A custom GTest macro for comparing 2 itk array-like objects. This verifies that the root mean squares error between the two array-like objects doesn't exceed the given error.

Definition at line 33 of file itkGTestPredicate.h.