✅ add test
This commit is contained in:
parent
ccd42cd3ac
commit
d300856292
@ -62,6 +62,10 @@ endforeach()
|
|||||||
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
|
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
|
||||||
unset(compiler_supports_cpp_17)
|
unset(compiler_supports_cpp_17)
|
||||||
endif()
|
endif()
|
||||||
|
# MSVC 2015 (14.0) does not support C++17
|
||||||
|
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.1)
|
||||||
|
unset(compiler_supports_cpp_17)
|
||||||
|
endif()
|
||||||
|
|
||||||
file(GLOB files src/unit-*.cpp)
|
file(GLOB files src/unit-*.cpp)
|
||||||
|
|
||||||
|
|||||||
@ -776,6 +776,8 @@ TEST_CASE("regression tests 2")
|
|||||||
|
|
||||||
const auto j_path = j.get<nlohmann::detail::std_fs::path>();
|
const auto j_path = j.get<nlohmann::detail::std_fs::path>();
|
||||||
CHECK(j_path == text_path);
|
CHECK(j_path == text_path);
|
||||||
|
|
||||||
|
CHECK_THROWS_WITH_AS(nlohmann::detail::std_fs::path(json(1)), "[json.exception.type_error.302] type must be string, but is number", json::type_error);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user