blob: 1853540813937b36fc077701efb12b6b507abd67 [file] [log] [blame]
Matthias Andreas Benkardeffabc92018-04-10 22:22:45 +02001#include <greeting/greeting.hpp>
Matthias Andreas Benkard4c712682018-04-10 20:54:36 +02002
3#define CATCH_CONFIG_MAIN
Matthias Andreas Benkardeffabc92018-04-10 22:22:45 +02004#include <catch/catch.hpp>
Matthias Andreas Benkard4c712682018-04-10 20:54:36 +02005
6TEST_CASE("greeting generation") {
7 using greeting::make_greeting;
8 REQUIRE(make_greeting("Matthias") == "Hello Matthias!");
9 REQUIRE(make_greeting("world") == "Hello world!");
10 REQUIRE(make_greeting("") == "Hello!");
11}