From catch2 version 3 and on, the catch.hpp header needs to be changed to
catch_all.hpp.

See https://github.com/catchorg/Catch2/blob/v3.0.1/docs/migrate-v2-to-v3.md#how-to-migrate-projects-from-v2-to-v3

Index: tests/catch/ranges.cpp
--- tests/catch/ranges.cpp.orig
+++ tests/catch/ranges.cpp
@@ -1,5 +1,5 @@
 
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 
 #include <core/array.hpp>
 #include <core/ranges.hpp>
