[libcxx-commits] [libcxx] [libc++][test] Augment ranges::{fill, fill_n, find} with missing tests (PR #121209)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 27 21:04:55 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff f51db95e064c97860910d1ca17a8c29eb23d8623 f7f5c1ad5517f6ce8e54569626ab24ffb1152002 --extensions cpp -- libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/fill.pass.cpp libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/fill_n.pass.cpp libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/ranges.fill.pass.cpp libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/ranges.fill_n.pass.cpp libcxx/test/std/algorithms/alg.nonmodifying/alg.count/ranges.count.pass.cpp libcxx/test/std/algorithms/alg.nonmodifying/alg.find/find.pass.cpp libcxx/test/std/algorithms/alg.nonmodifying/alg.find/ranges.find.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.count/ranges.count.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.count/ranges.count.pass.cpp
index df4a734338..877b6fa34e 100644
--- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.count/ranges.count.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.count/ranges.count.pass.cpp
@@ -262,7 +262,7 @@ constexpr bool test() {
       assert(ret == 1);
     }
     {
-      int a[]    = {5, 5, 4, 3, 2, 1};
+      int a[]                                      = {5, 5, 4, 3, 2, 1};
       auto range = std::ranges::subrange(DiffTypeIterator(a), DiffTypeIterator(a + 6));
       std::same_as<signed char> decltype(auto) ret = std::ranges::count(range, 4);
       assert(ret == 1);

``````````

</details>


https://github.com/llvm/llvm-project/pull/121209


More information about the libcxx-commits mailing list