From 296549c3ad3941ccf007db543c8e0d3f908a67d0 Mon Sep 17 00:00:00 2001 From: Fredrik Sandhei Date: Thu, 14 Nov 2024 15:51:27 +0100 Subject: [PATCH] Suppress lint instead of changing to 'contains' --- tests/src/unit-readme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-readme.cpp b/tests/src/unit-readme.cpp index 99c5ab992b..85d2319552 100644 --- a/tests/src/unit-readme.cpp +++ b/tests/src/unit-readme.cpp @@ -171,7 +171,7 @@ TEST_CASE("README" * doctest::skip()) // find an entry CHECK(o.find("foo") != o.end()); - if (o.contains("foo")) + if (o.find("foo") != o.end()) // NOLINT(readability-container-contains) { // there is an entry with key "foo" }