[libc++][ranges][NFC] Remove extraneous cleanup checks.

There is no need to check the counters on `Counted` after destroying
elements in the range because these tests are not testing `destroy`.

Differential Revision: https://reviews.llvm.org/D115839
This commit is contained in:
Konstantin Varlamov 2021-12-16 14:47:08 -08:00
parent eb12e61384
commit f195fd915e
2 changed files with 0 additions and 6 deletions

View File

@ -109,8 +109,6 @@ int main(int, char**) {
assert(Counted::total_objects == N);
std::destroy(buf.begin(), buf.end());
assert(Counted::current_objects == 0);
assert(Counted::total_objects == N);
Counted::reset();
}
@ -125,8 +123,6 @@ int main(int, char**) {
assert(Counted::total_objects == N);
std::destroy(buf.begin(), buf.end());
assert(Counted::current_objects == 0);
assert(Counted::total_objects == N);
Counted::reset();
}

View File

@ -90,8 +90,6 @@ int main(int, char**) {
assert(Counted::total_objects == N);
std::destroy(buf.begin(), buf.end());
assert(Counted::current_objects == 0);
assert(Counted::total_objects == N);
Counted::reset();
}