This is an archive of the discontinued LLVM Phabricator instance.

[libc++] [test] Simplify some ranges tests.
ClosedPublic

Authored by Quuxplusone on Dec 19 2021, 7:58 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG1fe897dffd31: [libc++] [test] Simplify some ranges tests.
Summary
Eliminate a bogus operator== overload.
Also, check more intermediate steps in the logic we're checking here.
Some of this simplification is possible only now that we've implemented
more of <ranges>.

Diff Detail

Event Timeline

Quuxplusone requested review of this revision.Dec 19 2021, 7:58 AM
Quuxplusone created this revision.
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptDec 19 2021, 7:58 AM
ldionne accepted this revision.Dec 21 2021, 6:57 AM
ldionne added inline comments.
libcxx/test/std/ranges/range.adaptors/range.common.view/begin.pass.cpp
72–73

I don't understand how this change is related to the bogus operator== removal?

This revision is now accepted and ready to land.Dec 21 2021, 6:57 AM
This revision was automatically updated to reflect the committed changes.
libcxx/test/std/ranges/range.adaptors/range.common.view/begin.pass.cpp
72–73

It's not (other than mentioning a "SizedForwardView", which is probably why it was on my radar at the same time). It's related to "Simplify some ranges tests," though.