mirror of
https://github.com/red0124/ssp.git
synced 2025-12-14 21:59:55 +01:00
Update extraction tests, update coverage-ci, update ssp.hpp
This commit is contained in:
@@ -12,8 +12,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
target_compile_options(ssp INTERFACE -Wall -Wextra)
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS "-Wall -fprofile-arcs -ftest-coverage --coverage")
|
||||
|
||||
if (MSVC)
|
||||
add_compile_options(/bigobj)
|
||||
elseif (MINGW)
|
||||
|
||||
@@ -64,8 +64,8 @@ TEST_CASE("extract test functions for numbers with invalid inputs") {
|
||||
CHECK_INVALID_CONVERSION("xxx1", float);
|
||||
|
||||
// number too big
|
||||
CHECK_INVALID_CONVERSION((std::string{20, '1'} + "." +
|
||||
std::string{20, '2'}),
|
||||
CHECK_INVALID_CONVERSION((std::string{40, '1'} + "." +
|
||||
std::string{40, '2'}),
|
||||
double);
|
||||
|
||||
// random input for int
|
||||
|
||||
@@ -31,8 +31,8 @@ TEST_CASE("extract test functions for numbers with invalid inputs without fast "
|
||||
CHECK_INVALID_CONVERSION("xxx1", float);
|
||||
|
||||
// number too big
|
||||
CHECK_INVALID_CONVERSION((std::string{20, '1'} + "." +
|
||||
std::string{20, '2'}),
|
||||
CHECK_INVALID_CONVERSION((std::string{40, '1'} + "." +
|
||||
std::string{40, '2'}),
|
||||
double);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user