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

Remove tautological assertion in StringRef tests

Upstream-commit: catchorg/Catch2@d1c4e41cb42a657bc7c8330dd9810a8e27567ade
Commit
c80e8c9265df866067a32b4830c6cd9d79056426
Author
Martin Hořeňovský ·
Committer
Leitwolf11
Parents
d716616301e9

Files · Download .tar.gz

Changes

 tests/SelfTest/IntrospectiveTests/String.tests.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/SelfTest/IntrospectiveTests/String.tests.cpp b/tests/SelfTest/IntrospectiveTests/String.tests.cpp
index c7c54d49..01cca40f 100644
--- a/tests/SelfTest/IntrospectiveTests/String.tests.cpp
+++ b/tests/SelfTest/IntrospectiveTests/String.tests.cpp
@@ -28,8 +28,6 @@ TEST_CASE( "StringRef", "[Strings][StringRef]" ) {
 
         auto rawChars = s.data();
         REQUIRE( std::strcmp( rawChars, "hello" ) == 0 );
-
-        REQUIRE(s.data() == rawChars);
     }
     SECTION( "From sub-string" ) {
         StringRef original = StringRef( "original string" ).substr(0, 8);