Commit Graph

207 Commits

Author SHA1 Message Date
Lukas Dürrenberger
7d496095a5 Updated catch to v1.12.2 2019-02-19 10:16:38 +01:00
Jan Haller
11b3fe4283 Added tags (module names) in TEST_CASE macros 2019-02-19 10:16:38 +01:00
Jan Haller
c3e5a35a6e Added string conversions for equality-comparable classes
Provides a Catch::toString() overload for the following SFML classes, that support at least operator== and operator!=, and can thus be used in Catch assertion expressions:
* String
* Time
* Vector2<T>
* Vector3<T>
* VideoMode
* Color
* Rect<T>

The intermediate header UnitTests.hpp is introduced to ensure string conversion visibility.
Do not include <catch.hpp> directly any longer.
2019-02-19 10:16:38 +01:00
Zack Mulgrew
620c9989d6 Add unit test for Rect.hpp 2019-02-19 10:16:38 +01:00
Jan Haller
5b08f8133f Used LF as line ending; added line break for echo output
winline
2019-02-19 10:16:38 +01:00
Jan Haller
a85dc6dabb Rewrote Vector2 tests in a more concise way 2019-02-19 10:16:38 +01:00
Stefan Schindler
3d46e39e6d Added Catch unit test framework. Added Vector2(i) unit test. Re-enabled CMake's RPATH feature. 2019-02-19 10:16:38 +01:00