Skip to content

Commit

Permalink
Only compile zip_view tests when zip is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Morwenn committed Dec 1, 2024
1 parent 978afc1 commit 4597b6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/cxx_23_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include <gfx/timsort.hpp>
#include "test_helpers.hpp"


#if defined(__cpp_lib_ranges_zip)

TEST_CASE( "support for std::ranges::views::zip" )
{
SECTION( "zip two small collections" ) {
Expand Down Expand Up @@ -45,3 +48,5 @@ TEST_CASE( "support for std::ranges::views::zip" )
CHECK( std::ranges::is_sorted(deq, std::ranges::greater{}) );
}
}

#endif // defined(__cpp_lib_ranges_zip)

0 comments on commit 4597b6c

Please # to comment.