Tests: add user-defined literal ""_s for std::string

This commit is contained in:
Benoit Blanchon committed 2024-06-07 09:35:45 +02:00
1 parent 5b88b2c1f6
commit 45611924f3
55 files changed
+316 -229

No files matched your search

+2 -1
View File
@@ -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();