Skip to content

Commit

Permalink
Update test/xpu_api/ranges/xpu_std_reverse_view.pass.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitriy Sobolev <[email protected]>
  • Loading branch information
MikeDvorskiy and dmitriy-sobolev authored Dec 16, 2024
1 parent f74c6dd commit eba77cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/xpu_api/ranges/xpu_std_reverse_view.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ main()
auto test = [](){
auto res = std::ranges::views::iota(0, 4) | std::ranges::views::reverse;
return res.size() == 4 && res[0] == 3 && res[1] == 2 && res[2] == 1 && res[3] == 0 &&
(*res.begin() + 2) == 1 && res.end() - res.begin() == 4;
*(res.begin() + 2) == 1 && res.end() - res.begin() == 4;
};
const bool res = kernel_test<class std_reverse_test>(test);
EXPECT_TRUE(res, "Wrong result of reverse_view check within a kernel");
Expand Down

0 comments on commit eba77cc

Please sign in to comment.