mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-11-01 23:21:38 +01:00
Tests: add user-defined literal ""_s for std::string
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "Allocators.hpp"
|
||||
#include "Literals.hpp"
|
||||
|
||||
TEST_CASE("JsonDocument::clear()") {
|
||||
SpyingAllocator spy;
|
||||
@@ -22,7 +23,7 @@ TEST_CASE("JsonDocument::clear()") {
|
||||
}
|
||||
|
||||
SECTION("releases resources") {
|
||||
doc[std::string("hello")] = std::string("world");
|
||||
doc["hello"_s] = "world"_s;
|
||||
spy.clearLog();
|
||||
|
||||
doc.clear();
|
||||
|
||||
Reference in New Issue
Block a user