This commit is contained in:
Dmitry Borisenko
2021-10-05 19:21:52 +08:00
parent 74c31e30ea
commit 421f3fcb9a
348 changed files with 22008 additions and 0 deletions

38
src/Tests.cpp Normal file
View File

@@ -0,0 +1,38 @@
#include "Tests.h"
#include "BufferExecute.h"
#include "Global.h"
#include "ItemsList.h"
#include "Macro.h"
#include "MySensorsDataParse.h"
#include "Utils/StringUtils.h"
void testsPerform() {
//Serial.println("====some tests section====");
////===========================================================================
//String str = "0;1;2;3;4";
//char* mychar = new char[str.length() + 1];
//strcpy(mychar, str.c_str());
//test(mychar);
////===========================================================================
//String myJson;
//const int capacity = JSON_ARRAY_SIZE(2) + 3 * JSON_OBJECT_SIZE(3);
//StaticJsonBuffer<capacity> jb;
//JsonArray& arr = jb.createArray();
//JsonObject& obj1 = jb.createObject();
//obj1["test1"] = 1;
//obj1["test2"] = 2;
//obj1["test3"] = 3;
//arr.add(obj1);
//arr.printTo(myJson);
//Serial.println(myJson);
//
//
//
////===========================================================================
////Serial.println(isDigitDotCommaStr("-12552.5555"));
////String str = "Geeks for Geeks ";
////Serial.println(itemsCount2(str, " "));
//
//Serial.println("==========end============");
}