32using namespace triqs::gfs;
34using namespace triqs::arrays;
35using namespace triqs::mesh;
55template <typename X, typename Y>::testing::AssertionResult
test_gfs_are_close(X
const &x, Y
const &y,
double precision = 1.e-6) {
58 return ::testing::AssertionSuccess();
63#define EXPECT_GF_NEAR(X, ...) EXPECT_TRUE(test_gfs_are_close(X, __VA_ARGS__))
78template <typename X, typename Y>::testing::AssertionResult
test_tails_are_close(X
const &x, Y
const &y,
double precision = 1.e-6) {
80 assert_tails_are_close(x, y, precision);
81 return ::testing::AssertionSuccess();
86#define EXPECT_TAIL_NEAR(X, ...) EXPECT_TRUE(test_tails_are_close(X, __VA_ARGS__))
101template <typename X, typename Y>::testing::AssertionResult
test_block_gfs_are_close(X
const &x, Y
const &y,
double precision = 1.e-6) {
104 return ::testing::AssertionSuccess();
109#define EXPECT_BLOCK_GF_NEAR(X, ...) EXPECT_TRUE(test_block_gfs_are_close(X, __VA_ARGS__))
124template <typename X, typename Y>::testing::AssertionResult
test_block2_gfs_are_close(X
const &x, Y
const &y,
double precision = 1.e-6) {
127 return ::testing::AssertionSuccess();
132#define EXPECT_BLOCK2_GF_NEAR(X, ...) EXPECT_TRUE(test_block2_gfs_are_close(X, __VA_ARGS__))
Base class for exceptions thrown in TRIQS.
virtual const char * what() const noexcept
Build and return the full diagnostic message.
TRIQS exception hierarchy and related macros.
Provides test helpers that assert two (block) Green's functions are numerically close.
Umbrella header for the Green's function library.