diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0085cb6fc19262b12505005da8b2c522019e9279..e2e9834af6fde384573b27f727e2d6db3206e1e8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -2,7 +2,7 @@ ci:
   autoupdate_branch: devel
 repos:
 - repo: https://github.com/astral-sh/ruff-pre-commit
-  rev: v0.3.7
+  rev: v0.4.8
   hooks:
   - id: ruff
     args:
@@ -19,7 +19,7 @@ repos:
   - id: toml-sort-fix
     exclude: poetry.lock
 - repo: https://github.com/pre-commit/mirrors-clang-format
-  rev: v18.1.3
+  rev: v18.1.6
   hooks:
   - id: clang-format
     args:
diff --git a/tests/Main.cpp b/tests/Main.cpp
index 3004309f785174f9960a1d6b0d83a71015f5b047..0b663589311f4836c3d09191e491e114a7e033b4 100644
--- a/tests/Main.cpp
+++ b/tests/Main.cpp
@@ -90,8 +90,8 @@ void CompareCurves(const curve1& c1, const curve2& c2,
     std::cout
         << errMsg
         << "CompareCurves, ERROR, time min and max of curves do not match ["
-        << T_min << "," << T_max << "] " << " and [" << c2.min() << ","
-        << c2.max() << "] " << std::endl;
+        << T_min << "," << T_max << "] "
+        << " and [" << c2.min() << "," << c2.max() << "] " << std::endl;
     error = true;
   } else {
     // derivative in T_min and T_max