🚨 fix warnings
This commit is contained in:
parent
bfd4c7c739
commit
95f50a3416
@ -319,6 +319,7 @@ TEST_CASE("regression tests 2")
|
|||||||
{
|
{
|
||||||
nlohmann::json dump_test;
|
nlohmann::json dump_test;
|
||||||
const std::array<int, 108> data =
|
const std::array<int, 108> data =
|
||||||
|
{
|
||||||
{
|
{
|
||||||
109, 108, 103, 125, -122, -53, 115,
|
109, 108, 103, 125, -122, -53, 115,
|
||||||
18, 3, 0, 102, 19, 1, 15,
|
18, 3, 0, 102, 19, 1, 15,
|
||||||
@ -336,6 +337,7 @@ TEST_CASE("regression tests 2")
|
|||||||
0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 33, 0, 0, 0, -96,
|
0, 0, 33, 0, 0, 0, -96,
|
||||||
-54, -28, -26
|
-54, -28, -26
|
||||||
|
}
|
||||||
};
|
};
|
||||||
std::string s;
|
std::string s;
|
||||||
for (int i : data)
|
for (int i : data)
|
||||||
@ -395,7 +397,7 @@ TEST_CASE("regression tests 2")
|
|||||||
|
|
||||||
SECTION("string array")
|
SECTION("string array")
|
||||||
{
|
{
|
||||||
const std::array<char, 2> input = { 'B', 0x00 };
|
const std::array<char, 2> input = {{ 'B', 0x00 }};
|
||||||
json cbor = json::from_cbor(input, true, false);
|
json cbor = json::from_cbor(input, true, false);
|
||||||
CHECK(cbor.is_discarded());
|
CHECK(cbor.is_discarded());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user