:white_check_mark: add test for #4440
diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp
index 93b2ca1..9da40e5 100644
--- a/tests/src/unit-regression2.cpp
+++ b/tests/src/unit-regression2.cpp
@@ -43,7 +43,7 @@
 #endif
 
 // for #4440
-#ifdef JSON_HAS_RANGES
+#if JSON_HAS_RANGES == 1
     #include <ranges>
 #endif
 
@@ -944,7 +944,7 @@
         CHECK(p.y == 2);
     }
 
-#ifdef JSON_HAS_RANGES
+#if JSON_HAS_RANGES == 1
     SECTION("issue 4440")
     {
         auto noOpFilter = std::views::filter([](auto&&)