mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 04:19:55 +00:00
40 lines
881 B
C++
40 lines
881 B
C++
|
#ifndef OPENMW_TEST_SUITE_DETOURNAVIGATOR_OPERATORS_H
|
||
|
#define OPENMW_TEST_SUITE_DETOURNAVIGATOR_OPERATORS_H
|
||
|
|
||
|
#include <components/bullethelpers/operators.hpp>
|
||
|
#include <components/detournavigator/debug.hpp>
|
||
|
|
||
|
#include <deque>
|
||
|
#include <iomanip>
|
||
|
#include <iostream>
|
||
|
#include <limits>
|
||
|
#include <sstream>
|
||
|
|
||
|
#include <gtest/gtest.h>
|
||
|
|
||
|
namespace DetourNavigator
|
||
|
{
|
||
|
static inline bool operator ==(const TileBounds& lhs, const TileBounds& rhs)
|
||
|
{
|
||
|
return lhs.mMin == rhs.mMin && lhs.mMax == rhs.mMax;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
namespace testing
|
||
|
{
|
||
|
template <>
|
||
|
inline testing::Message& Message::operator <<(const std::deque<osg::Vec3f>& value)
|
||
|
{
|
||
|
(*this) << "{\n";
|
||
|
for (const auto& v : value)
|
||
|
{
|
||
|
std::ostringstream stream;
|
||
|
stream << v;
|
||
|
(*this) << stream.str() << ",\n";
|
||
|
}
|
||
|
return (*this) << "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|