🚨 fix warnings
This commit is contained in:
parent
bfd4c7c739
commit
95f50a3416
@ -320,22 +320,24 @@ 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,
|
{
|
||||||
18, 3, 0, 102, 19, 1, 15,
|
109, 108, 103, 125, -122, -53, 115,
|
||||||
-110, 13, -3, -1, -81, 32, 2,
|
18, 3, 0, 102, 19, 1, 15,
|
||||||
0, 0, 0, 0, 0, 0, 0,
|
-110, 13, -3, -1, -81, 32, 2,
|
||||||
8, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, -80, 2,
|
8, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 96, -118, 46, -116, 46,
|
0, 0, 0, 0, 0, -80, 2,
|
||||||
109, -84, -87, 108, 14, 109, -24,
|
0, 0, 96, -118, 46, -116, 46,
|
||||||
-83, 13, -18, -51, -83, -52, -115,
|
109, -84, -87, 108, 14, 109, -24,
|
||||||
14, 6, 32, 0, 0, 0, 0,
|
-83, 13, -18, -51, -83, -52, -115,
|
||||||
0, 0, 0, 0, 0, 0, 0,
|
14, 6, 32, 0, 0, 0, 0,
|
||||||
64, 3, 0, 0, 0, 35, -74,
|
0, 0, 0, 0, 0, 0, 0,
|
||||||
-73, 55, 57, -128, 0, 0, 0,
|
64, 3, 0, 0, 0, 35, -74,
|
||||||
0, 0, 0, 0, 0, 0, 0,
|
-73, 55, 57, -128, 0, 0, 0,
|
||||||
0, 0, 33, 0, 0, 0, -96,
|
0, 0, 0, 0, 0, 0, 0,
|
||||||
-54, -28, -26
|
0, 0, 33, 0, 0, 0, -96,
|
||||||
|
-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