mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-09-03 23:50:53 +02:00
Merge branch 'master' into develop
This commit is contained in:
commit
9d1c7413f0
7 changed files with 27 additions and 38 deletions
|
@ -14,11 +14,6 @@ TEST_CASE("Greeter") {
|
|||
}
|
||||
|
||||
TEST_CASE("Greeter version") {
|
||||
#if (__cpp_lib_starts_ends_with)
|
||||
static_assert(std::string_view(GREETER_VERSION).starts_with("1")); // TBD C++20 only
|
||||
CHECK(std::string(GREETER_VERSION).starts_with("1")); // SameMajorVersion
|
||||
#else
|
||||
static_assert(std::string_view(GREETER_VERSION) == std::string_view("1.0.1"));
|
||||
CHECK(std::string(GREETER_VERSION) == std::string("1.0.1"));
|
||||
#endif
|
||||
static_assert(std::string_view(GREETER_VERSION) == std::string_view("1.0"));
|
||||
CHECK(std::string(GREETER_VERSION) == std::string("1.0"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue