Skip to content

Commit 7b5c0e9

Browse files
[tests] Fix return type in some test predicates (#2293)
1 parent 7667904 commit 7b5c0e9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/parallel_api/ranges/std_ranges_test.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ auto pred = [](auto&& val) { return val == 5; };
7676
auto binary_pred = [](auto&& val1, auto&& val2) { return val1 == val2; };
7777
auto binary_pred_const = [](const auto& val1, const auto& val2) { return val1 == val2; };
7878

79-
auto pred1 = [](auto&& val) -> decltype(auto) { return val > 0; };
80-
auto pred2 = [](auto&& val) -> decltype(auto) { return val == 4; };
81-
auto pred3 = [](auto&& val) -> decltype(auto) { return val < 0; };
79+
auto pred1 = [](auto&& val) -> bool { return val > 0; };
80+
auto pred2 = [](auto&& val) -> bool { return val == 4; };
81+
auto pred3 = [](auto&& val) -> bool { return val < 0; };
8282

8383
struct P2
8484
{

test/xpu_api/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search2_g.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "support/utils.h"
2121

22-
// A comparison, equalivalent to std::greater<int> without the
22+
// A comparison, equivalent to std::greater<int> without the
2323
// dependency on <functional>.
2424
struct gt
2525
{

test/xpu_api/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range2_g.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include "support/utils.h"
2323

24-
// A comparison, equalivalent to std::greater<int> without the
24+
// A comparison, equivalent to std::greater<int> without the
2525
// dependency on <functional>.
2626
struct gt
2727
{

0 commit comments

Comments
 (0)