You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctest/examples/all_features/double_stringification.cpp

19 lines
435 B
C++

#define DOCTEST_CONFIG_DOUBLE_STRINGIFY
#include <doctest_fwd.h>
DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN
#include <string>
DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END
namespace App {
struct Foo { };
static std::string toString(Foo*) { return "Foo"; }
}
TEST_CASE("toString std::string ret type") {
App::Foo foo;
CHECK(&foo != nullptr);
CHECK_NE(&foo, nullptr);
CHECK(&foo);
}