24 lines
531 B
C++
24 lines
531 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(test_texture_management),
|
|
}
|
|
};
|
|
}
|