mirror of
https://github.com/nlohmann/json.git
synced 2025-05-12 06:01:39 +00:00
👷 build ci_module_cpp20 with MSVC
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
parent
c17c7a8bd8
commit
41c94e06fc
@ -39,6 +39,7 @@
|
|||||||
#include <nlohmann/detail/hash.hpp>
|
#include <nlohmann/detail/hash.hpp>
|
||||||
#include <nlohmann/detail/input/binary_reader.hpp>
|
#include <nlohmann/detail/input/binary_reader.hpp>
|
||||||
#include <nlohmann/detail/input/input_adapters.hpp>
|
#include <nlohmann/detail/input/input_adapters.hpp>
|
||||||
|
#include <nlohmann/detail/input/json_sax.hpp>
|
||||||
#include <nlohmann/detail/input/lexer.hpp>
|
#include <nlohmann/detail/input/lexer.hpp>
|
||||||
#include <nlohmann/detail/input/parser.hpp>
|
#include <nlohmann/detail/input/parser.hpp>
|
||||||
#include <nlohmann/detail/iterators/internal_iterator.hpp>
|
#include <nlohmann/detail/iterators/internal_iterator.hpp>
|
||||||
|
@ -12889,6 +12889,8 @@ NLOHMANN_JSON_NAMESPACE_END
|
|||||||
|
|
||||||
// #include <nlohmann/detail/input/input_adapters.hpp>
|
// #include <nlohmann/detail/input/input_adapters.hpp>
|
||||||
|
|
||||||
|
// #include <nlohmann/detail/input/json_sax.hpp>
|
||||||
|
|
||||||
// #include <nlohmann/detail/input/lexer.hpp>
|
// #include <nlohmann/detail/input/lexer.hpp>
|
||||||
|
|
||||||
// #include <nlohmann/detail/input/parser.hpp>
|
// #include <nlohmann/detail/input/parser.hpp>
|
||||||
|
@ -1914,10 +1914,12 @@ TEST_CASE("MessagePack with std::byte")
|
|||||||
SECTION("empty vector")
|
SECTION("empty vector")
|
||||||
{
|
{
|
||||||
const std::vector<std::byte> empty_data;
|
const std::vector<std::byte> empty_data;
|
||||||
CHECK_THROWS_WITH_AS([&]() {
|
CHECK_THROWS_WITH_AS([&]()
|
||||||
|
{
|
||||||
[[maybe_unused]] auto result = json::from_msgpack(empty_data);
|
[[maybe_unused]] auto result = json::from_msgpack(empty_data);
|
||||||
return true;
|
return true;
|
||||||
}(),
|
}
|
||||||
|
(),
|
||||||
"[json.exception.parse_error.110] parse error at byte 1: syntax error while parsing MessagePack value: unexpected end of input",
|
"[json.exception.parse_error.110] parse error at byte 1: syntax error while parsing MessagePack value: unexpected end of input",
|
||||||
json::parse_error&);
|
json::parse_error&);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user