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 Clang-Tidy's readability-static-accessed-through-instance in tests

Commit
3ebc346bcb53635ac955e7c58de1095191415bb0
Author
Martin Hořeňovský ·
Parents
a483b6d7d364

Files · Download .tar.gz

Changes

 tests/SelfTest/IntrospectiveTests/ToString.tests.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp b/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp
index e1904606..60fafc80 100644
--- a/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp
+++ b/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp
@@ -103,15 +103,15 @@ TEST_CASE( "#2944 - Stringifying dates before 1970 should not crash", "[.approva
     using Catch::Matchers::Equals;
     using Days = std::chrono::duration<int32_t, std::ratio<86400>>;
     using SysDays = std::chrono::time_point<std::chrono::system_clock, Days>;
-    Catch::StringMaker<std::chrono::system_clock::time_point> sm;
+    using SM = Catch::StringMaker<std::chrono::system_clock::time_point>;
 
     // Check simple date first
     const SysDays post1970{ Days{ 1 } };
-    auto converted_post = sm.convert( post1970 );
+    auto converted_post = SM::convert( post1970 );
     REQUIRE( converted_post == "1970-01-02T00:00:00Z" );
 
     const SysDays pre1970{ Days{ -1 } };
-    auto converted_pre = sm.convert( pre1970 );
+    auto converted_pre = SM::convert( pre1970 );
     REQUIRE_THAT(
         converted_pre,
         Equals( "1969-12-31T00:00:00Z" ) ||