first commit
This commit is contained in:
commit
e6a42e28e9
4355 changed files with 4626605 additions and 0 deletions
15
libraries/ArduinoJson/extras/tests/Cpp20/smoke_test.cpp
Normal file
15
libraries/ArduinoJson/extras/tests/Cpp20/smoke_test.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include <ArduinoJson.h>
|
||||
|
||||
#include <catch.hpp>
|
||||
#include <string>
|
||||
|
||||
TEST_CASE("C++20 smoke test") {
|
||||
JsonDocument doc;
|
||||
|
||||
deserializeJson(doc, "{\"hello\":\"world\"}");
|
||||
REQUIRE(doc["hello"] == "world");
|
||||
|
||||
std::string json;
|
||||
serializeJson(doc, json);
|
||||
REQUIRE(json == "{\"hello\":\"world\"}");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue