mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
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:
parent
cb651c063c
commit
95a23c2d05
10
test/Audio/SoundFileWriter.test.cpp
Normal file
10
test/Audio/SoundFileWriter.test.cpp
Normal 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>);
|
@ -139,6 +139,7 @@ set(AUDIO_SRC
|
|||||||
Audio/SoundBufferRecorder.test.cpp
|
Audio/SoundBufferRecorder.test.cpp
|
||||||
Audio/SoundFileFactory.test.cpp
|
Audio/SoundFileFactory.test.cpp
|
||||||
Audio/SoundFileReader.test.cpp
|
Audio/SoundFileReader.test.cpp
|
||||||
|
Audio/SoundFileWriter.test.cpp
|
||||||
Audio/SoundRecorder.test.cpp
|
Audio/SoundRecorder.test.cpp
|
||||||
Audio/SoundSource.test.cpp
|
Audio/SoundSource.test.cpp
|
||||||
Audio/SoundStream.test.cpp
|
Audio/SoundStream.test.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user