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,15 +1,24 @@
#include <catch2/catch_test_macros.hpp>
#include <fmt/core.h>
#include <string>
#include "guecs/sfml/textures.hpp"
#include <fuc2/testing.hpp>
using namespace fmt;
using namespace fuc2;
TEST_CASE("test texture management", "[textures]") {
textures::init();
auto spider = textures::get("textures_test");
REQUIRE(spider.sprite != nullptr);
REQUIRE(spider.texture != nullptr);
namespace texture_tests {
void test_texture_management() {
textures::init();
auto spider = textures::get("textures_test");
CHECK(spider.sprite != nullptr);
CHECK(spider.texture != nullptr);
auto image = textures::load_image("assets/textures_test.png");
auto image = textures::load_image("assets/textures_test.png");
}
fuc2::Set TESTS{
.name="texture manager tests",
.tests={
{"test_texture_management", test_texture_management},
}
};
}