Skip to content

Commit

Permalink
[oneDPL][ranges][test] corrected number of element for the algo resul…
Browse files Browse the repository at this point in the history
…t checks
  • Loading branch information
MikeDvorskiy committed Oct 17, 2024
1 parent e729869 commit b654c87
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/parallel_api/ranges/std_ranges_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ struct test
typeid(decltype(tr_in(std::declval<Container&>()()))).name()).c_str());

//check result
EXPECT_EQ_N(cont_exp().begin(), cont_in().begin(), max_n, (std::string("wrong effect algo with ranges: ")
auto n = std::ranges::size(expected_view);
EXPECT_EQ_N(cont_exp().begin(), cont_in().begin(), n, (std::string("wrong effect algo with ranges: ")
+ typeid(Algo).name() + typeid(decltype(tr_in(std::declval<Container&>()()))).name()).c_str());
}

Expand Down Expand Up @@ -213,7 +214,8 @@ struct test
EXPECT_TRUE(bres_out, (std::string("wrong return value from algo with output range: ") + typeid(Algo).name()).c_str());

//check result
EXPECT_EQ_N(cont_exp().begin(), cont_out().begin(), n_out, (std::string("wrong effect algo with ranges: ") + typeid(Algo).name()).c_str());
auto n = std::ranges::size(out_view);
EXPECT_EQ_N(cont_exp().begin(), cont_out().begin(), n, (std::string("wrong effect algo with ranges: ") + typeid(Algo).name()).c_str());
}

public:
Expand Down Expand Up @@ -296,7 +298,8 @@ struct test
typeid(decltype(tr_in(std::declval<Container&>()()))).name()).c_str());

//check result
EXPECT_EQ_N(cont_exp().begin(), cont_out().begin(), n_out, (std::string("wrong effect algo with ranges: ") + typeid(Algo).name()).c_str());
auto n = std::ranges::size(expected_view);
EXPECT_EQ_N(cont_exp().begin(), cont_out().begin(), n, (std::string("wrong effect algo with ranges: ") + typeid(Algo).name()).c_str());
}

public:
Expand Down

0 comments on commit b654c87

Please sign in to comment.