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