#include <greeting/greeting.hpp> | |
#define CATCH_CONFIG_MAIN | |
#include <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!"); | |
} |