mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-10-31 22:51:37 +01:00
@@ -137,11 +137,12 @@ TEST_CASE("serialize MsgPack value") {
|
||||
checkVariant(longest.c_str(), "\xDA\xFF\xFF"_s + longest);
|
||||
}
|
||||
|
||||
#if ARDUINOJSON_STRING_LENGTH_SIZE > 2
|
||||
SECTION("str 32") {
|
||||
std::string shortest(65536, '?');
|
||||
checkVariant(JsonString(shortest.c_str(), true), // force store by pointer
|
||||
"\xDB\x00\x01\x00\x00"_s + shortest);
|
||||
checkVariant(shortest.c_str(), "\xDB\x00\x01\x00\x00"_s + shortest);
|
||||
}
|
||||
#endif
|
||||
|
||||
SECTION("serialized(const char*)") {
|
||||
checkVariant(serialized("\xDA\xFF\xFF"), "\xDA\xFF\xFF");
|
||||
|
||||
Reference in New Issue
Block a user