blob: 1719469e230357c99c31f4dffebf0c139a2232e3 [file] [log] [blame]
Matthias Andreas Benkard4c712682018-04-10 20:54:36 +02001#include <mod/greeting.hpp>
2
3#define CATCH_CONFIG_MAIN
4#include <mod/3rdparty/catch/catch.hpp>
5
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}