2022-07-25 14:36:05 +08:00
|
|
|
#include <SFML/Audio/SoundStream.hpp>
|
|
|
|
|
2024-04-12 02:40:15 +08:00
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
|
2022-07-25 14:36:05 +08:00
|
|
|
#include <type_traits>
|
|
|
|
|
2024-04-12 02:40:15 +08:00
|
|
|
TEST_CASE("[Audio] sf::SoundStream")
|
|
|
|
{
|
|
|
|
SECTION("Type traits")
|
|
|
|
{
|
|
|
|
STATIC_CHECK(!std::is_constructible_v<sf::SoundStream>);
|
|
|
|
STATIC_CHECK(!std::is_copy_constructible_v<sf::SoundStream>);
|
|
|
|
STATIC_CHECK(!std::is_copy_assignable_v<sf::SoundStream>);
|
|
|
|
STATIC_CHECK(!std::is_nothrow_move_constructible_v<sf::SoundStream>);
|
|
|
|
STATIC_CHECK(!std::is_nothrow_move_assignable_v<sf::SoundStream>);
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTION("Chunk")
|
|
|
|
{
|
|
|
|
const sf::SoundStream::Chunk chunk;
|
|
|
|
CHECK(chunk.samples == nullptr);
|
|
|
|
CHECK(chunk.sampleCount == 0);
|
|
|
|
}
|
|
|
|
}
|