mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-09-03 23:50:53 +02:00
change github actions to develop branch
set version to v1.0.1
This commit is contained in:
parent
47fa7c6933
commit
1aad14a6fa
9 changed files with 20 additions and 20 deletions
|
@ -42,7 +42,7 @@ file(GLOB sources CONFIGURE_DEPENDS source/*.cpp)
|
|||
add_executable(GreeterTests ${sources})
|
||||
target_link_libraries(GreeterTests doctest::doctest Greeter::Greeter)
|
||||
|
||||
set_target_properties(GreeterTests PROPERTIES CXX_STANDARD 17)
|
||||
set_target_properties(GreeterTests PROPERTIES CXX_STANDARD 20)
|
||||
|
||||
# enable compiler warnings
|
||||
if(NOT TEST_INSTALLED_VERSION)
|
||||
|
|
|
@ -20,7 +20,7 @@ TEST_CASE("Greeter version") {
|
|||
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"));
|
||||
static_assert(std::string_view(GREETER_VERSION) == std::string_view("1.0.1"));
|
||||
CHECK(std::string(GREETER_VERSION) == std::string("1.0.1"));
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue