1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Add detailed output for osg::Vec3f in tests

This commit is contained in:
elsid 2019-02-17 00:49:32 +03:00
parent a98a1cfe3e
commit 2b3bc4fe61
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -29,7 +29,10 @@ namespace testing
for (const auto& v : value)
{
std::ostringstream stream;
stream << v;
stream << "osg::Vec3f("
<< std::setprecision(std::numeric_limits<float>::max_exponent10) << v.x() << ", "
<< std::setprecision(std::numeric_limits<float>::max_exponent10) << v.y() << ", "
<< std::setprecision(std::numeric_limits<float>::max_exponent10) << v.z() << ")";
(*this) << stream.str() << ",\n";
}
return (*this) << "}";