| Matthias Andreas Benkard | 4c71268 | 2018-04-10 20:54:36 +0200 | [diff] [blame^] | 1 | #include <mod/greeting.hpp> |
| 2 | |||||
| 3 | #define CATCH_CONFIG_MAIN | ||||
| 4 | #include <mod/3rdparty/catch/catch.hpp> | ||||
| 5 | |||||
| 6 | TEST_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 | } | ||||