diff --git a/src/utf_view/tests/to_utf_view.t.cpp b/src/utf_view/tests/to_utf_view.t.cpp index bcd2c3d..95a4b21 100644 --- a/src/utf_view/tests/to_utf_view.t.cpp +++ b/src/utf_view/tests/to_utf_view.t.cpp @@ -61,6 +61,11 @@ template test_input_iterator(std::initializer_list) -> test_input_iterator; static_assert(std::input_iterator>); +static_assert( + std::input_iterator< + std::ranges::iterator_t< + to_utf8_view< + std::ranges::subrange, std::default_sentinel_t>>>>); template struct test_comparable_input_iterator { @@ -105,6 +110,12 @@ test_comparable_input_iterator(std::initializer_list) -> test_comparable_input_iterator; static_assert(std::input_iterator>); +static_assert( + std::input_iterator< + std::ranges::iterator_t< + to_utf8_view< + std::ranges::subrange, + std::default_sentinel_t>>>>); template struct test_copyable_input_iterator { @@ -154,6 +165,18 @@ test_copyable_input_iterator(std::initializer_list) static_assert(std::input_iterator>); static_assert(!std::forward_iterator>); +static_assert( + std::input_iterator< + std::ranges::iterator_t< + to_utf8_view< + std::ranges::subrange, + std::default_sentinel_t>>>>); +static_assert( + !std::forward_iterator< + std::ranges::iterator_t< + to_utf8_view< + std::ranges::subrange, + std::default_sentinel_t>>>>); template struct test_forward_iterator { @@ -202,6 +225,18 @@ template test_forward_iterator(std::initializer_list) -> test_forward_iterator; static_assert(std::forward_iterator>); +static_assert( + std::forward_iterator< + std::ranges::iterator_t< + to_utf8_view< + std::ranges::subrange, + std::default_sentinel_t>>>>); +static_assert( + std::forward_iterator< + std::ranges::sentinel_t< + to_utf8_view< + std::ranges::subrange, + test_forward_iterator>>>>); template struct test_bidi_iterator { @@ -258,6 +293,18 @@ template test_bidi_iterator(std::initializer_list) -> test_bidi_iterator; static_assert(std::bidirectional_iterator>); +static_assert( + std::bidirectional_iterator< + std::ranges::iterator_t< + to_utf8_view< + std::ranges::subrange, + std::default_sentinel_t>>>>); +static_assert( + std::bidirectional_iterator< + std::ranges::sentinel_t< + to_utf8_view< + std::ranges::subrange, + test_bidi_iterator>>>>); template struct test_case_code_unit_result {