ALPSCore reference
Classes | Namespaces | Macros | Functions
near.hpp File Reference
#include "gtest/gtest.h"
#include <Eigen/Core>
#include <type_traits>
Include dependency graph for near.hpp:

Go to the source code of this file.

Classes

struct  alps::testing::is_scalar< T >
 
struct  alps::testing::is_scalar< std::complex< T > >
 
struct  alps::testing::is_scalar< float >
 
struct  alps::testing::is_scalar< double >
 
struct  alps::testing::is_scalar< long double >
 

Namespaces

 alps
 
 alps::testing
 

Macros

#define ALPS_EXPECT_NEAR(val1, val2, abs_error)   EXPECT_PRED_FORMAT3(::alps::testing::NearPredFormat, val1, val2, abs_error)
 

Functions

template<typename T , typename std::enable_if< is_scalar< T >::value, int >::type = 0>
::testing::AssertionResult alps::testing::NearPredFormat (const char *expr1, const char *expr2, const char *abs_error_expr, const T &val1, const T &val2, double abs_error)
 
template<typename Derived1 , typename Derived2 >
::testing::AssertionResult alps::testing::NearPredFormat (const char *expr1, const char *expr2, const char *abs_error_expr, const Eigen::MatrixBase< Derived1 > &val1, const Eigen::MatrixBase< Derived2 > &val2, double abs_error)
 

Macro Definition Documentation

#define ALPS_EXPECT_NEAR (   val1,
  val2,
  abs_error 
)    EXPECT_PRED_FORMAT3(::alps::testing::NearPredFormat, val1, val2, abs_error)

Extends gtest's EXPECT_NEAR to complex variables and Eigen matrices

Definition at line 70 of file near.hpp.