Add detailed output for osg::Vec3f in tests

pull/541/head
elsid 6 years ago
parent a98a1cfe3e
commit 2b3bc4fe61
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -29,7 +29,10 @@ namespace testing
for (const auto& v : value) for (const auto& v : value)
{ {
std::ostringstream stream; 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"; (*this) << stream.str() << ",\n";
} }
return (*this) << "}"; return (*this) << "}";

Loading…
Cancel
Save