forked from bblanchon/ArduinoJson
Remove StaticJsonDocument
This commit is contained in:
1 parent
5edd435fe9
commit
17a482a9b1
66 files changed
+477
-1728
No files matched your search
@@ -7,7 +7,7 @@
|
||||
|
||||
template <typename TOut, typename TIn>
|
||||
void shouldBeOk(TIn value) {
|
||||
StaticJsonDocument<1> doc;
|
||||
DynamicJsonDocument doc(1);
|
||||
JsonVariant var = doc.to<JsonVariant>();
|
||||
var.set(value);
|
||||
REQUIRE(var.as<TOut>() == TOut(value));
|
||||
@@ -15,7 +15,7 @@ void shouldBeOk(TIn value) {
|
||||
|
||||
template <typename TOut, typename TIn>
|
||||
void shouldOverflow(TIn value) {
|
||||
StaticJsonDocument<1> doc;
|
||||
DynamicJsonDocument doc(1);
|
||||
JsonVariant var = doc.to<JsonVariant>();
|
||||
var.set(value);
|
||||
REQUIRE(var.as<TOut>() == 0);
|
||||
|
||||
Reference in new issue
Block a user