diff options
| author | Martin Hořeňovský | 2018-07-02 11:13:07 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-07-02 17:36:13 +0200 |
| commit | e1d81174dba1a7d81eb348490005dfc02a648c7e (patch) | |
| tree | 946dd410cd355691d62b93b52cf61b7c45577370 /projects/SelfTest/IntrospectiveTests/String.tests.cpp | |
| parent | 4846ad59e10e6174df1c4679cfef5bc80fe3f5d7 (diff) | |
| download | catch3-e1d81174dba1a7d81eb348490005dfc02a648c7e.tar.gz | |
Add -Wmissing-declarations to the SelfTest project
This required some clean-up in our test files
Diffstat (limited to 'projects/SelfTest/IntrospectiveTests/String.tests.cpp')
| -rw-r--r-- | projects/SelfTest/IntrospectiveTests/String.tests.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/projects/SelfTest/IntrospectiveTests/String.tests.cpp b/projects/SelfTest/IntrospectiveTests/String.tests.cpp index ee6e4c58..ae21bb3c 100644 --- a/projects/SelfTest/IntrospectiveTests/String.tests.cpp +++ b/projects/SelfTest/IntrospectiveTests/String.tests.cpp @@ -16,23 +16,22 @@ namespace Catch { } }; + + namespace { auto isOwned( StringRef const& stringRef ) -> bool { return StringRefTestAccess::isOwned( stringRef ); } auto isSubstring( StringRef const& stringRef ) -> bool { return StringRefTestAccess::isSubstring( stringRef ); } -} // namespace Catch2 + } // end anonymous namespace -namespace Catch { - inline auto toString( Catch::StringRef const& stringRef ) -> std::string { - return std::string( stringRef.currentData(), stringRef.size() ); - } } // namespace Catch TEST_CASE( "StringRef", "[Strings][StringRef]" ) { using Catch::StringRef; + using Catch::isOwned; using Catch::isSubstring; SECTION( "Empty string" ) { StringRef empty; |