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
- Commit
c80e8c9265df866067a32b4830c6cd9d79056426- Author
- Martin Hořeňovský ·
- Committer
- Leitwolf11
- Parents
d716616301e9
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);