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
- Commit
d716616301e9ce6f7b5c5b881333031745c57614- Author
- Martin Hořeňovský ·
- Committer
- Leitwolf11
- Parents
5c13bf3365d5
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") {