Просмотр исходного кода

test: get around the best bug ever of msvc, toolset v141

Michele Caini 5 лет назад
Родитель
Сommit
fc1292b1d1
2 измененных файлов с 5 добавлено и 5 удалено
  1. 2 2
      test/entt/entity/group.cpp
  2. 3 3
      test/entt/entity/view.cpp

+ 2 - 2
test/entt/entity/group.cpp

@@ -105,7 +105,7 @@ TEST(NonOwningGroup, Invalid) {
     group.each([](const auto, const auto &) { FAIL(); });
     group.each([](const auto &) { FAIL(); });
 
-    for([[maybe_unused]] const auto all: group.each()) { FAIL(); }
+    for([[maybe_unused]] auto all: group.each()) { FAIL(); }
     for(auto first = group.each().rbegin(), last = group.each().rend(); first != last; ++first) { FAIL(); }
 
     ASSERT_NO_THROW(group.sort([](const auto, const auto) { FAIL(), true; }));
@@ -677,7 +677,7 @@ TEST(OwningGroup, Invalid) {
     group.each([](const auto, const auto &) { FAIL(); });
     group.each([](const auto &) { FAIL(); });
 
-    for([[maybe_unused]] const auto all: group.each()) { FAIL(); }
+    for([[maybe_unused]] auto all: group.each()) { FAIL(); }
     for(auto first = group.each().rbegin(), last = group.each().rend(); first != last; ++first) { FAIL(); }
 }
 

+ 3 - 3
test/entt/entity/view.cpp

@@ -95,10 +95,10 @@ TEST(SingleComponentView, Invalid) {
     eview.each([](const auto) { FAIL(); });
     eview.each([]() { FAIL(); });
 
-    for([[maybe_unused]] const auto all: cview.each()) { FAIL(); }
+    for([[maybe_unused]] auto all: cview.each()) { FAIL(); }
     for(auto first = cview.each().rbegin(), last = cview.each().rend(); first != last; ++first) { FAIL(); }
 
-    for([[maybe_unused]] const auto entt: eview.each()) { FAIL(); }
+    for([[maybe_unused]] auto entt: eview.each()) { FAIL(); }
     for(auto first = eview.each().rbegin(), last = eview.each().rend(); first != last; ++first) { FAIL(); }
 }
 
@@ -424,7 +424,7 @@ TEST(MultiComponentView, Invalid) {
     view.each([](const auto, const auto &) { FAIL(); });
     view.each([](const auto &) { FAIL(); });
 
-    for([[maybe_unused]] const auto all: view.each()) { FAIL(); }
+    for([[maybe_unused]] auto all: view.each()) { FAIL(); }
     for(auto first = view.each().rbegin(), last = view.each().rend(); first != last; ++first) { FAIL(); }
 }