Use strlen() for literals too

This commit is contained in:
Benoit Blanchon
2025-02-27 13:41:25 +01:00
parent 7dfa163695
commit 907bb43481
5 changed files with 7 additions and 8 deletions
-2
View File
@@ -25,8 +25,6 @@ TEST_CASE("JsonDocument::operator[]") {
SECTION("string literal") {
REQUIRE(doc["abc"] == "ABC");
REQUIRE(cdoc["abc"] == "ABC");
REQUIRE(doc["abc\0d"] == "ABCD");
REQUIRE(cdoc["abc\0d"] == "ABCD");
}
SECTION("std::string") {