Fix tests so that they actually run something

This commit is contained in:
duncanspumpkin 2023-01-19 21:49:16 +00:00
parent c3aab4e460
commit 3fc1dc7eee
1 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ uint8_t TileElementsViewTests::_gScreenFlags;
template<typename T> std::vector<T*> BuildListManual(const CoordsXY& pos)
{
std::vector<TileElement*> res;
std::vector<T*> res;
TileElement* element = MapGetFirstElementAt(pos);
if (element == nullptr)
@ -85,7 +85,7 @@ template<typename T> std::vector<T*> BuildListManual(const CoordsXY& pos)
template<typename T> std::vector<T*> BuildListByView(const CoordsXY& pos)
{
std::vector<TileElement*> res;
std::vector<T*> res;
for (auto* element : TileElementsView<T>(pos))
{
@ -97,8 +97,8 @@ template<typename T> std::vector<T*> BuildListByView(const CoordsXY& pos)
template<typename T> bool CompareLists(const CoordsXY& pos)
{
auto listManual = BuildListManual<TileElement>(pos);
auto listView = BuildListByView<TileElement>(pos);
auto listManual = BuildListManual<T>(pos);
auto listView = BuildListByView<T>(pos);
EXPECT_EQ(listManual.size(), listView.size());
if (listManual.size() != listView.size())