From 95a23c2d05c23ac4bbafd09be96c0224a5ff1407 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 16 Apr 2024 15:02:16 -0600 Subject: [PATCH] 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. --- test/Audio/SoundFileWriter.test.cpp | 10 ++++++++++ test/CMakeLists.txt | 1 + 2 files changed, 11 insertions(+) create mode 100644 test/Audio/SoundFileWriter.test.cpp diff --git a/test/Audio/SoundFileWriter.test.cpp b/test/Audio/SoundFileWriter.test.cpp new file mode 100644 index 000000000..9e7812f97 --- /dev/null +++ b/test/Audio/SoundFileWriter.test.cpp @@ -0,0 +1,10 @@ +#include + +#include + +static_assert(!std::is_constructible_v); +static_assert(!std::is_copy_constructible_v); +static_assert(std::is_copy_assignable_v); +static_assert(!std::is_nothrow_move_constructible_v); +static_assert(std::is_nothrow_move_assignable_v); +static_assert(std::has_virtual_destructor_v); diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4051c4cbe..2fbc8e2d0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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