Separated test suites into their individual modules

- Building per module only requires to have split test utility sections
- System module tests are always added, as the system module is always built
This commit is contained in:
Lukas Dürrenberger 2018-08-19 01:30:53 +02:00 committed by Lukas Dürrenberger
parent 7d496095a5
commit d402ce5a5d
11 changed files with 154 additions and 73 deletions

View file

@ -0,0 +1,20 @@
// Note: No need to increase compile time by including TestUtilities/System.hpp
#include <SFML/System/String.hpp>
#include <SFML/System/Time.hpp>
#include <sstream>
// String conversions for Catch framework
namespace Catch
{
std::string toString(const sf::String& string)
{
return string.toAnsiString();
}
std::string toString(sf::Time time)
{
std::ostringstream stream;
stream << time.asMicroseconds() << "us";
return stream.str();
}
}