diff --git a/test/System/Time.cpp b/test/System/Time.cpp index b2ef629a..d32f8341 100644 --- a/test/System/Time.cpp +++ b/test/System/Time.cpp @@ -1,19 +1,8 @@ #include - -#include -#include +#include "SystemUtil.hpp" using doctest::Approx; -namespace sf -{ -std::ostream& operator <<(std::ostream& os, const sf::Time& time) -{ - os << time.asMicroseconds() << "us"; - return os; -} -} - TEST_CASE("sf::Time class - [system]") { SUBCASE("Construction") diff --git a/test/Window/VideoMode.cpp b/test/Window/VideoMode.cpp index 1fc550ad..2f6bab7a 100644 --- a/test/Window/VideoMode.cpp +++ b/test/Window/VideoMode.cpp @@ -1,16 +1,5 @@ #include - -#include -#include - -namespace sf -{ -std::ostream& operator <<(std::ostream& os, const sf::VideoMode& videoMode) -{ - os << videoMode.width << " x " << videoMode.height << " x " << videoMode.bitsPerPixel; - return os; -} -} +#include "WindowUtil.hpp" TEST_CASE("sf::VideoMode class - [window]") {