From 326bb9879d3baf60b2147f3efcc231a9b5093b3d Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 18 Dec 2024 17:13:55 +0100 Subject: [PATCH] test: minor changes --- TODO | 2 +- test/entt/entity/view.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index 470c27b75..92ecd85f5 100644 --- a/TODO +++ b/TODO @@ -43,4 +43,4 @@ TODO: * any cdynamic to support const ownership construction * track meta context on meta elements * safer meta_data/meta_func (no blind indirections) -* review tests, write doc for view::join and decide whether I like it or prefer operator| for consistency :) \ No newline at end of file +* write doc for view::join and decide whether I like it or prefer operator| for consistency :) \ No newline at end of file diff --git a/test/entt/entity/view.cpp b/test/entt/entity/view.cpp index 3f145bdbd..ab5e5229a 100644 --- a/test/entt/entity/view.cpp +++ b/test/entt/entity/view.cpp @@ -1539,11 +1539,10 @@ TEST(View, Pipe) { entt::basic_view view1{std::forward_as_tuple(std::get<0>(storage)), std::forward_as_tuple(std::as_const(std::get<1>(storage)))}; entt::basic_view view2{std::forward_as_tuple(std::as_const(std::get<0>(storage))), std::forward_as_tuple(std::get<4>(storage))}; entt::basic_view view3{std::get<2>(storage)}; - entt::basic_view view4{std::get<3>(storage)}; - entt::basic_view view5{std::get<3>(std::as_const(storage))}; + entt::basic_view view4{std::as_const(std::get<3>(storage))}; testing::StaticAssertTypeEq(storage))), decltype(view1 | view3)>(); - testing::StaticAssertTypeEq(std::as_const(storage)))), decltype(view1 | view5)>(); + testing::StaticAssertTypeEq(std::as_const(storage)))), decltype(view1 | view4)>(); testing::StaticAssertTypeEq, const entt::storage>, entt::exclude_t, entt::storage>>, decltype(view1 | view2)>(); testing::StaticAssertTypeEq, entt::storage>, entt::exclude_t, const entt::storage>>, decltype(view2 | view1)>();