Harden copyability tests to test for triviality

This commit is contained in:
Chris Thrasher 2024-12-12 22:40:57 -07:00
parent dab1800f61
commit 9222860233
No known key found for this signature in database
GPG Key ID: 56FB686C9DFC8E2C
22 changed files with 64 additions and 64 deletions

View File

@ -63,8 +63,8 @@ TEST_CASE("[Audio] sf::SoundFileFactory")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::SoundFileFactory>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::SoundFileFactory>);
STATIC_CHECK(std::is_copy_assignable_v<sf::SoundFileFactory>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::SoundFileFactory>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::SoundFileFactory>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::SoundFileFactory>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::SoundFileFactory>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::SoundFileFactory>);
} }

View File

@ -9,8 +9,8 @@ TEST_CASE("[Graphics] sf::BlendMode")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::BlendMode>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::BlendMode>);
STATIC_CHECK(std::is_copy_assignable_v<sf::BlendMode>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::BlendMode>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::BlendMode>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::BlendMode>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::BlendMode>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::BlendMode>);
} }

View File

@ -10,8 +10,8 @@ TEST_CASE("[Graphics] sf::Color")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Color>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Color>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Color>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Color>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Color>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Color>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Color>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Color>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::Color>); STATIC_CHECK(std::is_trivially_copyable_v<sf::Color>);

View File

@ -8,8 +8,8 @@ TEST_CASE("[Graphics] sf::CoordinateType")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::CoordinateType>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::CoordinateType>);
STATIC_CHECK(std::is_copy_assignable_v<sf::CoordinateType>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::CoordinateType>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::CoordinateType>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::CoordinateType>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::CoordinateType>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::CoordinateType>);
} }

View File

@ -16,8 +16,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Vec2>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Vec2>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Vec2>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Vec2>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Vec2>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Vec2>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Vec2>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Vec2>);
} }
@ -31,8 +31,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Ivec2>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Ivec2>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Ivec2>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Ivec2>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Ivec2>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Ivec2>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Ivec2>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Ivec2>);
} }
@ -46,8 +46,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Bvec2>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Bvec2>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Bvec2>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Bvec2>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Bvec2>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Bvec2>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Bvec2>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Bvec2>);
} }
@ -61,8 +61,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Vec3>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Vec3>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Vec3>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Vec3>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Vec3>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Vec3>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Vec3>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Vec3>);
} }
@ -77,8 +77,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Ivec3>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Ivec3>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Ivec3>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Ivec3>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Ivec3>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Ivec3>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Ivec3>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Ivec3>);
} }
@ -93,8 +93,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Bvec3>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Bvec3>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Bvec3>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Bvec3>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Bvec3>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Bvec3>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Bvec3>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Bvec3>);
} }
@ -109,8 +109,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Vec4>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Vec4>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Vec4>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Vec4>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Vec4>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Vec4>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Vec4>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Vec4>);
} }
@ -159,8 +159,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Ivec4>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Ivec4>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Ivec4>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Ivec4>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Ivec4>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Ivec4>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Ivec4>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Ivec4>);
} }
@ -209,8 +209,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Bvec4>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Bvec4>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Bvec4>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Bvec4>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Bvec4>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Bvec4>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Bvec4>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Bvec4>);
} }
@ -250,8 +250,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Mat3>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Mat3>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Mat3>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Mat3>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Mat3>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Mat3>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Mat3>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Mat3>);
} }
@ -291,8 +291,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glsl::Mat4>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Mat4>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glsl::Mat4>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Mat4>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Mat4>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Mat4>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Mat4>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Mat4>);
} }

View File

@ -9,8 +9,8 @@ TEST_CASE("[Graphics] sf::Glyph")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Glyph>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glyph>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Glyph>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glyph>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glyph>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glyph>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glyph>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glyph>);
} }

View File

@ -11,8 +11,8 @@ TEMPLATE_TEST_CASE("[Graphics] sf::Rect", "", int, float)
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Rect<TestType>>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Rect<TestType>>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Rect<TestType>>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Rect<TestType>>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Rect<TestType>>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Rect<TestType>>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Rect<TestType>>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Rect<TestType>>);
} }

View File

@ -9,8 +9,8 @@ TEST_CASE("[Graphics] sf::RenderStates")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::RenderStates>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::RenderStates>);
STATIC_CHECK(std::is_copy_assignable_v<sf::RenderStates>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::RenderStates>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::RenderStates>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::RenderStates>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::RenderStates>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::RenderStates>);
} }

View File

@ -8,8 +8,8 @@ TEST_CASE("[Graphics] sf::StencilMode")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::StencilMode>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::StencilMode>);
STATIC_CHECK(std::is_copy_assignable_v<sf::StencilMode>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::StencilMode>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::StencilMode>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::StencilMode>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::StencilMode>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::StencilMode>);
} }

View File

@ -15,8 +15,8 @@ TEST_CASE("[Graphics] sf::Transform")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Transform>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Transform>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Transform>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Transform>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Transform>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Transform>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Transform>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Transform>);
} }

View File

@ -9,8 +9,8 @@ TEST_CASE("[Graphics] sf::Vertex")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Vertex>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Vertex>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Vertex>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Vertex>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vertex>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vertex>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vertex>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vertex>);
STATIC_CHECK(std::is_aggregate_v<sf::Vertex>); STATIC_CHECK(std::is_aggregate_v<sf::Vertex>);

View File

@ -9,8 +9,8 @@ TEST_CASE("[Graphics] sf::View")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::View>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::View>);
STATIC_CHECK(std::is_copy_assignable_v<sf::View>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::View>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::View>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::View>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::View>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::View>);
} }

View File

@ -13,8 +13,8 @@ TEST_CASE("[Network] sf::IpAddress")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::IpAddress>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::IpAddress>);
STATIC_CHECK(std::is_copy_assignable_v<sf::IpAddress>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::IpAddress>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::IpAddress>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::IpAddress>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::IpAddress>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::IpAddress>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::IpAddress>); STATIC_CHECK(std::is_trivially_copyable_v<sf::IpAddress>);

View File

@ -9,8 +9,8 @@ TEST_CASE("[System] sf::Angle")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Angle>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Angle>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Angle>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Angle>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Angle>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Angle>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Angle>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Angle>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::Angle>); STATIC_CHECK(std::is_trivially_copyable_v<sf::Angle>);

View File

@ -13,8 +13,8 @@ TEST_CASE("[System] sf::Clock")
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Clock>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Clock>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Clock>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Clock>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Clock>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Clock>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Clock>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Clock>);
} }

View File

@ -61,8 +61,8 @@ TEST_CASE("[System] sf::U8StringCharTraits")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::U8StringCharTraits>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::U8StringCharTraits>);
STATIC_CHECK(std::is_copy_assignable_v<sf::U8StringCharTraits>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::U8StringCharTraits>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::U8StringCharTraits>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::U8StringCharTraits>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::U8StringCharTraits>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::U8StringCharTraits>);
} }

View File

@ -11,8 +11,8 @@ TEST_CASE("[System] sf::Time")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Time>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Time>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Time>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Time>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Time>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Time>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Time>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Time>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::Time>); STATIC_CHECK(std::is_trivially_copyable_v<sf::Time>);

View File

@ -13,8 +13,8 @@ TEMPLATE_TEST_CASE("[System] sf::Vector2", "", int, float)
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Vector2<TestType>>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Vector2<TestType>>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vector2<TestType>>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vector2<TestType>>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_trivially_copyable_v<sf::Vector2<TestType>>);

View File

@ -9,8 +9,8 @@ TEMPLATE_TEST_CASE("[System] sf::Vector3", "", int, float)
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::Vector3<TestType>>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Vector3<TestType>>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Vector3<TestType>>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Vector3<TestType>>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vector3<TestType>>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vector3<TestType>>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vector3<TestType>>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vector3<TestType>>);
} }

View File

@ -8,8 +8,8 @@ TEST_CASE("[Window] sf::ContextSettings")
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::ContextSettings>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::ContextSettings>);
STATIC_CHECK(std::is_copy_assignable_v<sf::ContextSettings>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::ContextSettings>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::ContextSettings>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::ContextSettings>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::ContextSettings>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::ContextSettings>);
} }

View File

@ -37,8 +37,8 @@ TEST_CASE("[Window] sf::Event")
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(!std::is_default_constructible_v<sf::Event>); STATIC_CHECK(!std::is_default_constructible_v<sf::Event>);
STATIC_CHECK(std::is_copy_constructible_v<sf::Event>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Event>);
STATIC_CHECK(std::is_copy_assignable_v<sf::Event>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Event>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Event>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Event>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Event>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Event>);
} }

View File

@ -10,8 +10,8 @@ TEST_CASE("[Window] sf::VideoMode", runDisplayTests())
{ {
SECTION("Type traits") SECTION("Type traits")
{ {
STATIC_CHECK(std::is_copy_constructible_v<sf::VideoMode>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::VideoMode>);
STATIC_CHECK(std::is_copy_assignable_v<sf::VideoMode>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::VideoMode>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::VideoMode>); STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::VideoMode>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::VideoMode>); STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::VideoMode>);
} }