#include <mod/greeting.hpp> | |
#define CATCH_CONFIG_MAIN | |
#include <mod/3rdparty/catch/catch.hpp> | |
TEST_CASE("greeting generation") { | |
using greeting::make_greeting; | |
REQUIRE(make_greeting("Matthias") == "Hello Matthias!"); | |
REQUIRE(make_greeting("world") == "Hello world!"); | |
REQUIRE(make_greeting("") == "Hello!"); | |
} |