From 049e3ce8f266b9f838c750039b5358fa5d2eb44f Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sat, 30 Apr 2022 23:20:46 -0600 Subject: [PATCH] Increase precision of operator<<(Vector2) --- test/TestUtilities/SystemUtil.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/TestUtilities/SystemUtil.hpp b/test/TestUtilities/SystemUtil.hpp index 2fac550e5..7e4a094e0 100644 --- a/test/TestUtilities/SystemUtil.hpp +++ b/test/TestUtilities/SystemUtil.hpp @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -27,6 +28,7 @@ namespace sf template std::ostream& operator <<(std::ostream& os, const sf::Vector2& vector) { + os << std::fixed << std::setprecision(std::numeric_limits::max_digits10); os << "(" << vector.x << ", " << vector.y << ")"; return os; }