mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-11-01 02:31:34 +01:00
changes acording review comments
update to current PackageProject version 1.5.0 too
This commit is contained in:
parent
f76aa76a81
commit
b483a1eb5a
4 changed files with 11 additions and 30 deletions
|
|
@ -16,11 +16,6 @@ TEST_CASE("Greeter") {
|
|||
}
|
||||
|
||||
TEST_CASE("Greeter version") {
|
||||
#if (__cpp_lib_starts_ends_with)
|
||||
static_assert(std::string_view(GREETER_VERSION).starts_with("1.0")); // TBD C++20 only
|
||||
CHECK(std::string(GREETER_VERSION).starts_with("1.0")); // SameMajorVersion
|
||||
#else
|
||||
static_assert(std::string_view(GREETER_VERSION) == std::string_view("1.0"));
|
||||
CHECK(std::string(GREETER_VERSION) == std::string("1.0"));
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue