#include #include #include #include "components.hpp" #include "dinkyecs.hpp" using namespace fmt; using namespace components; TEST_CASE("test the loot ui", "[loot]") { Config items("assets/items.json"); DinkyECS::World world; auto torch = world.entity(); auto& data = items["TORCH_BAD"]; components::init(); components::configure_entity(world, torch, data["components"]); auto& torch_sprite = world.get(torch); REQUIRE(torch_sprite.name == "torch_horizontal_floor"); }