2020-08-09 09:48:40 +00:00
|
|
|
#ifdef TESTS_BUILD
|
|
|
|
|
2020-09-25 10:43:08 +00:00
|
|
|
#include "../../extern/doctest.hpp"
|
2020-08-09 09:48:40 +00:00
|
|
|
#include "../../src/Library/CreatureData/CreatureSpecies.hpp"
|
|
|
|
|
|
|
|
using namespace CreatureLib::Library;
|
|
|
|
|
2020-09-25 10:43:08 +00:00
|
|
|
TEST_CASE("Set Variant") {
|
2020-08-09 09:48:40 +00:00
|
|
|
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
|