mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
d6e1961112
While I don't suspect there are any uninitialize variable bugs present, it's still good to err on the side of safety and provide an initial value nonetheless.
25 lines
697 B
C++
25 lines
697 B
C++
#include <SFML/Audio/SoundStream.hpp>
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
#include <type_traits>
|
|
|
|
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);
|
|
}
|
|
}
|