From 3bac2d755950bcfe32a9380f94ff7c93ff0d4bb8 Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila Date: Thu, 19 Dec 2024 14:08:06 +0100 Subject: [PATCH] use `colection::mutable_type` --- tests/unittests/std_interoperability.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/unittests/std_interoperability.cpp b/tests/unittests/std_interoperability.cpp index 3f7aa890b..0bdd2f2ce 100644 --- a/tests/unittests/std_interoperability.cpp +++ b/tests/unittests/std_interoperability.cpp @@ -500,14 +500,14 @@ TEST_CASE("Collection and iterator concepts", "[collection][container][iterator] TEST_CASE("Collection and unsupported iterator concepts", "[collection][container][iterator][std]") { // std::indirectly_writable DOCUMENTED_STATIC_FAILURE(std::indirectly_writable); - DOCUMENTED_STATIC_FAILURE(std::indirectly_writable); + DOCUMENTED_STATIC_FAILURE(std::indirectly_writable); DOCUMENTED_STATIC_FAILURE(std::indirectly_writable); - DOCUMENTED_STATIC_FAILURE(std::indirectly_writable); + DOCUMENTED_STATIC_FAILURE(std::indirectly_writable); // std::output_iterator DOCUMENTED_STATIC_FAILURE(std::output_iterator); - DOCUMENTED_STATIC_FAILURE(std::output_iterator); + DOCUMENTED_STATIC_FAILURE(std::output_iterator); DOCUMENTED_STATIC_FAILURE(std::output_iterator); - DOCUMENTED_STATIC_FAILURE(std::output_iterator); + DOCUMENTED_STATIC_FAILURE(std::output_iterator); // std::forward_iterator DOCUMENTED_STATIC_FAILURE(std::forward_iterator); DOCUMENTED_STATIC_FAILURE(std::forward_iterator); @@ -881,24 +881,24 @@ TEST_CASE("Collection iterators", "[collection][container][iterator][std]") { // *r++ = o // iterator DOCUMENTED_STATIC_FAILURE(traits::has_dereference_assignment_increment_v); - STATIC_REQUIRE(traits::has_dereference_assignment_increment_v); + STATIC_REQUIRE(traits::has_dereference_assignment_increment_v); { auto coll = CollectionType{}; auto item = coll.create(13ull, 0., 0., 0., 0.); REQUIRE(coll.begin()->cellID() == 13ull); - auto new_item = CollectionType::value_type::mutable_type{42ull, 0., 0., 0., 0.}; + auto new_item = CollectionType::mutable_type{42ull, 0., 0., 0., 0.}; *coll.begin()++ = new_item; DOCUMENTED_FAILURE(coll.begin()->cellID() == 42ull); } // const_iterator STATIC_REQUIRE(traits::has_dereference_assignment_increment_v); STATIC_REQUIRE( - traits::has_dereference_assignment_increment_v); + traits::has_dereference_assignment_increment_v); { auto coll = CollectionType{}; auto item = coll.create(13ull, 0., 0., 0., 0.); REQUIRE(coll.cbegin()->cellID() == 13ull); - auto new_item = CollectionType::value_type::mutable_type{42ull, 0., 0., 0., 0.}; + auto new_item = CollectionType::mutable_type{42ull, 0., 0., 0., 0.}; *coll.cbegin()++ = new_item; DOCUMENTED_FAILURE(coll.cbegin()->cellID() == 42ull); new_item.cellID(44ull); @@ -1103,7 +1103,7 @@ TEST_CASE("Collection as range", "[collection][ranges][std]") { STATIC_REQUIRE(std::ranges::input_range); // std::range::output_range DOCUMENTED_STATIC_FAILURE(std::ranges::output_range); - DOCUMENTED_STATIC_FAILURE(std::ranges::output_range); + DOCUMENTED_STATIC_FAILURE(std::ranges::output_range); // std::range::forward_range DOCUMENTED_STATIC_FAILURE(std::ranges::forward_range); // std::range::bidirectional_range