Now off catch2 and on my own testing fuc2.

This commit is contained in:
Zed A. Shaw 2026-06-16 01:34:03 -04:00
parent 4f3fa59793
commit 1d11c8b162
10 changed files with 177 additions and 98 deletions

View file

@ -1,14 +1,23 @@
#include <catch2/catch_test_macros.hpp>
#include <fmt/core.h>
#include <string>
#include "guecs/sfml/sound.hpp"
#include <fuc2/testing.hpp>
using namespace fmt;
using namespace fuc2;
TEST_CASE("test sound manager", "[sound]") {
sound::init();
namespace sound_tests {
void test_sound_manager() {
sound::init();
sound::play("blank");
sound::play("blank");
sound::play_at("blank", 0.1, 0.1, 0.1);
sound::play_at("blank", 0.1, 0.1, 0.1);
}
fuc2::Set TESTS{
.name="sound manager tests",
.tests={
{"test_sound_manager", test_sound_manager},
}
};
}