mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix tests so that they actually run something
This commit is contained in:
parent
c3aab4e460
commit
3fc1dc7eee
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue