[libcxx-commits] [libcxx] f502b98 - [libc++][NFC] Add comment in test to explain the presence of some assertions

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 10 10:03:00 PST 2024


Author: Louis Dionne
Date: 2024-01-10T13:02:50-05:00
New Revision: f502b981b471c04bef1b2a6c581c02b59f931163

URL: https://github.com/llvm/llvm-project/commit/f502b981b471c04bef1b2a6c581c02b59f931163
DIFF: https://github.com/llvm/llvm-project/commit/f502b981b471c04bef1b2a6c581c02b59f931163.diff

LOG: [libc++][NFC] Add comment in test to explain the presence of some assertions

Added: 
    

Modified: 
    libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp b/libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp
index a58f74c3b591f1..440b12e2c71c77 100644
--- a/libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp
+++ b/libcxx/test/libcxx/ranges/range.utility.helpers/simple_view.compile.pass.cpp
@@ -50,6 +50,7 @@ static_assert(!std::ranges::__simple_view<NoConstView>);
 static_assert( std::ranges::__simple_view<DifferentSentinel>);
 static_assert(!std::ranges::__simple_view<WrongConstSentinel>);
 
+// To make sure __simple_view and the test version of the concept stay in sync.
 static_assert(simple_view<SimpleView>);
 static_assert(!simple_view<WrongConstView>);
 static_assert(!simple_view<NoConstView>);


        


More information about the libcxx-commits mailing list