llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy
Konstantin Varlamov f537a01d39 [libc++][ranges] Fix the return value of `{copy,move}_backward`.
The return value for both of these algorithms is specified as
```
`{last, result - N}` for the overloads in namespace `ranges`.
```
But the current implementation instead returns `{first, result - N}`.

Also add both algorithms to the relevant "robust" tests.

Differential Revision: https://reviews.llvm.org/D130968
2022-08-02 22:22:59 -07:00
..
copy.pass.cpp [libc++][NFC] Use cpp17_output_iterator in tests. 2022-02-04 08:01:20 +01:00
copy_backward.pass.cpp [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
copy_if.pass.cpp [libc++][NFC] Use cpp17_output_iterator in tests. 2022-02-04 08:01:20 +01:00
copy_n.pass.cpp [libc++][NFC] Use cpp17_output_iterator in tests. 2022-02-04 08:01:20 +01:00
ranges.copy.pass.cpp [libc++] Fix unwrapping ranges with different iterators and sentinels 2022-07-28 10:22:41 +02:00
ranges.copy_backward.pass.cpp [libc++][ranges] Fix the return value of `{copy,move}_backward`. 2022-08-02 22:22:59 -07:00
ranges.copy_if.pass.cpp [libcxx][ranges] Create a test tool `ProxyIterator` that customises `iter_move` and `iter_swap` 2022-07-08 00:00:21 +01:00
ranges.copy_n.pass.cpp [libcxx][ranges] Create a test tool `ProxyIterator` that customises `iter_move` and `iter_swap` 2022-07-08 00:00:21 +01:00