Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
phyBrackets committed Sep 25, 2023
1 parent ceb7f40 commit 1a65a7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ constexpr bool test() {
}

{// check that the implicit conversion to bool works

{
StrictComparable<int> a[] = {1, 2, 2, 3, 4};
std::same_as<std::ranges::subrange<StrictComparable<int>*>> auto ret = std::ranges::find_last(a, a + 4, StrictComparable<int>{2});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ constexpr void test_iterators() {
std::same_as<std::ranges::subrange<It>> auto ret = std::ranges::find_last_if(It(a), Sent(It(a + 4)), [](int x) { return x == 5; });
assert(ret.empty());
}

{
int a[] = {1, 2, 3, 4};
std::same_as<std::ranges::borrowed_subrange_t<int (&)[4]>> auto ret = std::ranges::find_last_if(a, [](int x) { return x == 5; });
Expand Down Expand Up @@ -338,7 +338,7 @@ constexpr bool test() {
}

{// check that the implicit conversion to bool works

{
int a[] = {1, 2, 3, 3, 4};
std::same_as<std::ranges::subrange<int*>> auto ret = std::ranges::find_last_if(a, a + 4, [](const int& i) { return BooleanTestable{i == 3}; });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ static_assert(!HasFindLastIfNotR<InputRangeNotSentinelEqualityComparableWith>);

template <class It, class Sent = It>
constexpr void test_iterators() {

{// Test with an empty range

{
int a[] = {};
std::same_as<std::ranges::subrange<It>> auto ret = std::ranges::find_last_if_not(It(a), Sent(It(a)), [](int) { return false; });
Expand Down Expand Up @@ -187,7 +187,7 @@ constexpr bool test() {
assert(ret.data() == a + 2);
assert(ret.data()->comp == 0);
assert(ret.data()->other == 1);
}
}

{
struct S {
Expand Down

0 comments on commit 1a65a7e

Please sign in to comment.