Skip to content

Commit

Permalink
[libc++][test] Verify std::views::drop and std::views::join are CPOs
Browse files Browse the repository at this point in the history
`std::views::drops` and `std::views::join` have been implemented, but the tests
verifying the CPOs for them are still commented out. Uncomment the tests.

Differential Revision: https://reviews.llvm.org/D125618
  • Loading branch information
JoeLoser committed May 15, 2022
1 parent b4ad450 commit 496e135
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -42,7 +42,7 @@ constexpr bool test(CPO& o, Args&&...) {
}

int a[10];
//int arrays[10][10];
int arrays[10][10];
//std::pair<int, int> pairs[10];

// [concept.swappable]
Expand Down Expand Up @@ -86,11 +86,11 @@ static_assert(test(std::views::single, 4));
static_assert(test(std::views::all, a));
static_assert(test(std::views::common, a));
static_assert(test(std::views::counted, a, 10));
//static_assert(test(std::views::drop, a, 10));
static_assert(test(std::views::drop, a, 10));
//static_assert(test(std::views::drop_while, a, [](int x){ return x < 10; }));
//static_assert(test(std::views::elements<0>, pairs));
static_assert(test(std::views::filter, a, [](int x){ return x < 10; }));
//static_assert(test(std::views::join, arrays));
static_assert(test(std::views::join, arrays));
//static_assert(test(std::views::split, a, 4));
static_assert(test(std::views::lazy_split, a, 4));
static_assert(test(std::views::reverse, a));
Expand Down

0 comments on commit 496e135

Please sign in to comment.