Add type trait tests for sf::SoundFileWriter

Other Audio module types get this same treatment so we ought to
also have a .test.cpp for this header.
This commit is contained in:
Chris Thrasher 2024-04-16 15:02:16 -06:00
parent cb651c063c
commit 95a23c2d05
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#include <SFML/Audio/SoundFileWriter.hpp>
#include <type_traits>
static_assert(!std::is_constructible_v<sf::SoundFileWriter>);
static_assert(!std::is_copy_constructible_v<sf::SoundFileWriter>);
static_assert(std::is_copy_assignable_v<sf::SoundFileWriter>);
static_assert(!std::is_nothrow_move_constructible_v<sf::SoundFileWriter>);
static_assert(std::is_nothrow_move_assignable_v<sf::SoundFileWriter>);
static_assert(std::has_virtual_destructor_v<sf::SoundFileWriter>);

View File

@ -139,6 +139,7 @@ set(AUDIO_SRC
Audio/SoundBufferRecorder.test.cpp
Audio/SoundFileFactory.test.cpp
Audio/SoundFileReader.test.cpp
Audio/SoundFileWriter.test.cpp
Audio/SoundRecorder.test.cpp
Audio/SoundSource.test.cpp
Audio/SoundStream.test.cpp