Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2025-07-15 14:41:56 +0200
committerMartin Hořeňovský2025-07-15 15:23:23 +0200
commit3ebc346bcb53635ac955e7c58de1095191415bb0 (patch)
tree8f1925494913c05eb831ed1944635b88333dc8b5 /tests/SelfTest/IntrospectiveTests/ToString.tests.cpp
parenta483b6d7d36457b0931eca85fda1a30a2b56eb4e (diff)
downloadcatch3-3ebc346bcb53635ac955e7c58de1095191415bb0.tar.gz
Fix Clang-Tidy's readability-static-accessed-through-instance in tests
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/ToString.tests.cpp')
-rw-r--r--tests/SelfTest/IntrospectiveTests/ToString.tests.cpp6
1 files 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" ) ||