1 #include <framework/logging/Logger.h>
2 #include <gtest/gtest.h>
38 if (testVector[0] == 42)
return true;
58 EXPECT_TRUE(doStuffHere());
59 EXPECT_FALSE(doStuffHere({23}));
61 if (doStuffHere() ==
false) {
62 B2WARNING(
"it didn't work!");
64 B2WARNING(
"yay, it worked!");
72 EXPECT_TRUE(std::isinf(1. / 0.));
73 EXPECT_FALSE(std::isnan(1. / 0.));
74 EXPECT_TRUE(std::isnan(std::sqrt(-1)));
75 EXPECT_FALSE(std::isinf(std::sqrt(-1)));
76 EXPECT_TRUE(std::isnan(0. / 0.));
77 EXPECT_FALSE(std::isinf(0. / 0.));
80 EXPECT_FALSE(std::isinf(std::pow(0., 0.)));