Removed the indirection via StringSlot

This commit is contained in:
Benoit Blanchon
2018-11-27 17:28:19 +01:00
parent 45f4e5ac20
commit a60162ba76
23 changed files with 105 additions and 164 deletions

View File

@ -79,12 +79,12 @@ TEST_CASE("JsonVariant with not enough memory") {
JsonVariant v = doc.to<JsonVariant>();
SECTION("std::string") {
v.set(std::string("hello"));
v.set(std::string("hello world!!"));
REQUIRE(v.isNull());
}
SECTION("Serialized<std::string>") {
v.set(serialized(std::string("hello")));
v.set(serialized(std::string("hello world!!")));
REQUIRE(v.isNull());
}
}