Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Fix tautological replaceInPlace test

Upstream-commit: catchorg/Catch2@a9a22993e507960a4fb07606d751d5a121dde663
Commit
d716616301e9ce6f7b5c5b881333031745c57614
Author
Martin Hořeňovský ·
Committer
Leitwolf11
Parents
5c13bf3365d5

Files · Download .tar.gz

Changes

 tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp b/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp
index 8264a560..0330cde8 100644
--- a/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp
+++ b/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp
@@ -55,7 +55,7 @@ TEST_CASE("replaceInPlace", "[string-manip]") {
     }
     SECTION("replace no chars") {
         CHECK_FALSE(Catch::replaceInPlace(letters, "x", "z"));
-        CHECK(letters == letters);
+        CHECK( letters == "abcdefcg" );
     }
     SECTION("no replace in already-replaced string") {
         SECTION("lengthening") {