Require stringification for all tested types
This ensures that if a printing function is not provided, compilation fails. This prevents problems where a header is accidentally removed that was previously providing an operator<< overload or prevents new tests from being added without print support for all directly tested types.
This commit is contained in:
parent
3925139f4d
commit
a57640c2c8
@ -9,6 +9,7 @@ add_library(sfml-test-main STATIC
|
||||
)
|
||||
target_include_directories(sfml-test-main SYSTEM PUBLIC "${PROJECT_SOURCE_DIR}/extlibs/headers")
|
||||
target_include_directories(sfml-test-main PUBLIC TestUtilities)
|
||||
target_compile_definitions(sfml-test-main PUBLIC DOCTEST_CONFIG_REQUIRE_STRINGIFICATION_FOR_ALL_USED_TYPES)
|
||||
target_link_libraries(sfml-test-main PUBLIC SFML::System)
|
||||
set_target_warnings(sfml-test-main)
|
||||
|
||||
|
@ -78,7 +78,6 @@ TEST_CASE("sf::Rect class template - [graphics]")
|
||||
|
||||
const sf::IntRect nonIntersectingRectangle({-5, -5}, {5, 5});
|
||||
CHECK_FALSE(rectangle.findIntersection(nonIntersectingRectangle).has_value());
|
||||
CHECK_FALSE(rectangle.findIntersection(nonIntersectingRectangle));
|
||||
}
|
||||
|
||||
SUBCASE("getPosition()")
|
||||
|
Loading…
Reference in New Issue
Block a user