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 <SFML/System/Time.hpp>
|
||||||
|
#include "SystemUtil.hpp"
|
||||||
#include <ostream>
|
|
||||||
#include <doctest.h>
|
|
||||||
|
|
||||||
using doctest::Approx;
|
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]")
|
TEST_CASE("sf::Time class - [system]")
|
||||||
{
|
{
|
||||||
SUBCASE("Construction")
|
SUBCASE("Construction")
|
||||||
|
@ -1,16 +1,5 @@
|
|||||||
#include <SFML/Window/VideoMode.hpp>
|
#include <SFML/Window/VideoMode.hpp>
|
||||||
|
#include "WindowUtil.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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_CASE("sf::VideoMode class - [window]")
|
TEST_CASE("sf::VideoMode class - [window]")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user