Rename addElement() to add()

This commit is contained in:
Benoit Blanchon committed 2022-07-07 14:32:43 +02:00
1 parent 04872b6db8
commit 758580bfb6
11 files changed
+32 -27

No files matched your search

+3 -3
View File
@@ -10,7 +10,7 @@
TEST_CASE("Compare JsonVariant with value") {
StaticJsonDocument<256> doc;
JsonVariant a = doc.addElement();
JsonVariant a = doc.add();
SECTION("null vs (char*)0") {
char* b = 0;
@@ -38,8 +38,8 @@ TEST_CASE("Compare JsonVariant with value") {
TEST_CASE("Compare JsonVariant with JsonVariant") {
StaticJsonDocument<256> doc;
JsonVariant a = doc.addElement();
JsonVariant b = doc.addElement();
JsonVariant a = doc.add();
JsonVariant b = doc.add();
SECTION("'abc' vs 'abc'") {
a.set("abc");