From 3197dc80293a3eaf659849e2459134fa4c57577b Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 28 Dec 2021 20:21:03 -0700 Subject: [PATCH] Remove redundant formatters --- test/System/Time.cpp | 13 +------------ test/Window/VideoMode.cpp | 13 +------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/test/System/Time.cpp b/test/System/Time.cpp index b2ef629a6..d32f83412 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 1fc550ad1..2f6bab7a0 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]") {