CreatureLib/tests/LibraryTests/SpeciesTest.cpp

15 lines
550 B
C++
Raw Normal View History

#ifdef TESTS_BUILD
#include "../../extern/catch.hpp"
#include "../../src/Library/CreatureData/CreatureSpecies.hpp"
using namespace CreatureLib::Library;
TEST_CASE("Set Variant", "[Library]") {
auto defaultVariant = new SpeciesVariant("default", 0, 0, 0, {0, 1}, StatisticSet<uint16_t>(), {}, {}, nullptr);
auto c = CreatureSpecies(0, "foo", defaultVariant, 0, "", 0);
auto secondVariant = new SpeciesVariant("second", 0, 0, 0, {0, 1}, StatisticSet<uint16_t>(), {}, {}, nullptr);
c.SetVariant("second"_cnc, secondVariant);
}
#endif