Go to the documentation of this file. 6 #define EXPECT_TRUE(args) { \ 7 if (!(args)) { fprintf(stderr, "test failed (EXPECT_TRUE) in %s, line %d\n", __FILE__, __LINE__); \ 11 #define EXPECT_FALSE(args) { \ 12 if (args) { fprintf(stderr, "test failed (EXPECT_FALSE) in %s, line %d\n", __FILE__, __LINE__); \ 16 #define EXPECT_EQ(a,b) { \ 17 if (!(a == b)) { std::cerr << "test failed: " <<a<<"!="<<b<< " in " \ 18 << __FILE__ << ", line " <<__LINE__ << std::endl; \ 22 #define EXPECT_FLOAT_EQ(a,b) { \ 23 if (!(fabs(a-b) <= 1e-5)) { fprintf(stderr, "test failed: %f != %f in %s, line %d\n", a, b, __FILE__, __LINE__); \ 27 #define EXPECT_NEAR(a,b,prec) { \ 28 if (!(fabs(a-b) <= prec)) { fprintf(stderr, "test failed: |%f - %f| > %f in %s, line %d\n", a, b, prec, __FILE__, __LINE__); \
octomap
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Mon Jun 10 2019 14:00:13