#ifdef CATCH2_v3 #include "catch2/catch_all.hpp" #else #include #endif #include #include using namespace ngcore; TEST_CASE("ranges") { Array a { 3, -1, 10, -5 }; Array positive { 3, 10 }; int i = 0; for(auto pos_val : a | filter([](auto val) { return val >= 0; })) { CHECK(pos_val == positive[i++]); } }