@@ -41,7 +41,7 @@ void test_SFIANE() {
4141 static_assert (HasIndices<std::size_t >);
4242 types::for_each (types::integer_types (), IntegerTypesTest{});
4343
44- // Not integer-like types should not satisfy HasIndices
44+ // Non- integer-like types should not satisfy HasIndices
4545 static_assert (!HasIndices<bool >);
4646 static_assert (!HasIndices<float >);
4747 static_assert (!HasIndices<void >);
@@ -52,11 +52,10 @@ void test_SFIANE() {
5252constexpr bool test () {
5353 {
5454 auto indices_view = std::ranges::views::indices (5 );
55- assert (indices_view.size () == 5 );
56-
57- // Check that the view is a range
5855 static_assert (std::ranges::range<decltype (indices_view)>);
5956
57+ assert (indices_view.size () == 5 );
58+
6059 assert (indices_view[0 ] == 0 );
6160 assert (indices_view[1 ] == 1 );
6261 assert (indices_view[2 ] == 2 );
@@ -68,11 +67,10 @@ constexpr bool test() {
6867 std::vector v (5 , 0 );
6968
7069 auto indices_view = std::ranges::views::indices (std::ranges::size (v));
71- assert (indices_view.size () == 5 );
72-
73- // Check that the view is a range
7470 static_assert (std::ranges::range<decltype (indices_view)>);
7571
72+ assert (indices_view.size () == 5 );
73+
7674 assert (indices_view[0 ] == 0 );
7775 assert (indices_view[1 ] == 1 );
7876 assert (indices_view[2 ] == 2 );
@@ -83,13 +81,11 @@ constexpr bool test() {
8381 {
8482 std::vector v (5 , SomeInt{});
8583
86- // Check that the indices view works as expected
8784 auto indices_view = std::ranges::views::indices (std::ranges::size (v));
88- assert (indices_view.size () == 5 );
89-
90- // Check that the view is a range
9185 static_assert (std::ranges::range<decltype (indices_view)>);
9286
87+ assert (indices_view.size () == 5 );
88+
9389 assert (indices_view[0 ] == 0 );
9490 assert (indices_view[1 ] == 1 );
9591 assert (indices_view[2 ] == 2 );
0 commit comments