Skip to content

Commit

Permalink
[oneDPL][ranges][zip_view][test] + minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDvorskiy committed Nov 8, 2024
1 parent 41e9a5f commit 3d4a62c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel_api/ranges/std_ranges_zip_view.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ void test_zip_view_base_op()

EXPECT_TRUE(zip_view[0] == zip_view.front(), "zip_view::front method returns a wrong result.");
EXPECT_TRUE(zip_view[zip_view.size() - 1] == zip_view.back(), "zip_view::back method returns a wrong result.");
EXPECT_TRUE(!zip_view.empty(), "zip_view::empty() method returns a wrong result.");

using zip_view_t = dpl_ranges::zip_view<std::ranges::iota_view<int>>;
auto zip_view_0 = zip_view_t();
EXPECT_TRUE(zip_view_0.empty(), "zip_view::empty() method returns a wrong result.");
EXPECT_TRUE(!zip_view_0.empty(), "zip_view::empty() method returns a wrong result.");
}
#endif //_ENABLE_STD_RANGES_TESTING

Expand Down

0 comments on commit 3d4a62c

Please sign in to comment.