lel-guecs/tests/textures.cpp
2026-06-16 01:34:03 -04:00

24 lines
554 B
C++

#include <fmt/core.h>
#include <string>
#include "guecs/sfml/textures.hpp"
#include <fuc2/testing.hpp>
using namespace fuc2;
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");
}
fuc2::Set TESTS{
.name="texture manager tests",
.tests={
{"test_texture_management", test_texture_management},
}
};
}