1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-09-03 23:50:53 +02:00

modernize the cmake files a bit

try to use a namespace for cmake config package
This commit is contained in:
ClausKlein 2021-02-05 02:18:00 +01:00
parent ed4ff7833a
commit bf9cb6c214
9 changed files with 83 additions and 38 deletions

View file

@ -18,4 +18,9 @@ TEST_CASE("Greeter") {
TEST_CASE("Greeter version") {
static_assert(std::string_view(GREETER_VERSION) == std::string_view("1.0"));
CHECK(std::string(GREETER_VERSION) == std::string("1.0"));
}
}
TEST_CASE("Greeter date") {
const greeter::Greeter greeter("Tests");
CHECK(greeter.getIsoDate() == std::string("03:15:30"));
}