[libc++][ranges][test-suite][NFC] Formatted and moved transform_view's sentinel.pass.cpp - #211252
Merged
ldionne merged 1 commit intoJul 22, 2026
Merged
Conversation
…`'s `sentinel.pass.cpp` As a pre-requisite to: llvm#193891
ldionne
approved these changes
Jul 22, 2026
|
@llvm/pr-subscribers-libcxx Author: Hristo Hristov (H-G-Hristov) ChangesAs a pre-requisite to: #193891 Full diff: https://github.com/llvm/llvm-project/pull/211252.diff 1 Files Affected:
diff --git a/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/sentinel.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.transform/sentinel/sentinel.pass.cpp
similarity index 89%
rename from libcxx/test/std/ranges/range.adaptors/range.transform/iterator/sentinel.pass.cpp
rename to libcxx/test/std/ranges/range.adaptors/range.transform/sentinel/sentinel.pass.cpp
index ce48e09d6eb8f..b0529916775b3 100644
--- a/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/sentinel.pass.cpp
+++ b/libcxx/test/std/ranges/range.adaptors/range.transform/sentinel/sentinel.pass.cpp
@@ -16,7 +16,7 @@
#include "test_macros.h"
#include "../types.h"
-template<class T>
+template <class T>
concept EndIsIter = requires(T t) { ++t.end(); };
constexpr bool test() {
@@ -33,7 +33,7 @@ constexpr bool test() {
std::ranges::transform_view transformView2(SizedSentinelView{4}, PlusOne());
auto sent4 = transformView2.end();
- auto iter = transformView1.begin();
+ auto iter = transformView1.begin();
{
assert(iter != sent1);
assert(iter != sent2);
@@ -47,10 +47,10 @@ constexpr bool test() {
}
{
- assert(sent1 - iter == 8);
- assert(sent4 - iter == 4);
- assert(iter - sent1 == -8);
- assert(iter - sent4 == -4);
+ assert(sent1 - iter == 8);
+ assert(sent4 - iter == 4);
+ assert(iter - sent1 == -8);
+ assert(iter - sent4 == -4);
}
return true;
|
frederick-vs-ja
approved these changes
Jul 22, 2026
Member
|
The libunwind failure is unrelated and we're pursuing a fix independently. |
midhuncodes7
pushed a commit
to midhuncodes7/llvm-project
that referenced
this pull request
Jul 28, 2026
…lvm#211252) As a pre-requisite to: llvm#193891
asudarsa-qti
pushed a commit
to asudarsa-qti/llvm-project
that referenced
this pull request
Jul 29, 2026
…lvm#211252) As a pre-requisite to: llvm#193891
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As a pre-requisite to: #193891