mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Remove redundant formatters
This commit is contained in:
parent
3dc8fc0923
commit
3197dc8029
@ -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")
|
||||
|
@ -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]")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user