Remove redundant formatters

This commit is contained in:
Chris Thrasher 2021-12-28 20:21:03 -07:00 committed by Lukas Dürrenberger
parent 3dc8fc0923
commit 3197dc8029
2 changed files with 2 additions and 24 deletions

View File

@ -1,19 +1,8 @@
#include <SFML/System/Time.hpp>
#include <ostream>
#include <doctest.h>
#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")

View File

@ -1,16 +1,5 @@
#include <SFML/Window/VideoMode.hpp>
#include <doctest.h>
#include <ostream>
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]")
{