2020-08-09 09:48:40 +00:00
|
|
|
#ifdef TESTS_BUILD
|
|
|
|
|
2022-02-05 12:59:15 +00:00
|
|
|
#include <doctest.h>
|
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") {
|
2022-03-23 12:56:45 +00:00
|
|
|
auto defaultVariant = new SpeciesVariant("default", 0, 0, 0, {0, 1}, StatisticSet<u16>(), {}, {}, nullptr);
|
2020-08-09 09:48:40 +00:00
|
|
|
auto c = CreatureSpecies(0, "foo", defaultVariant, 0, "", 0);
|
2022-03-23 12:56:45 +00:00
|
|
|
auto secondVariant = new SpeciesVariant("second", 0, 0, 0, {0, 1}, StatisticSet<u16>(), {}, {}, nullptr);
|
2020-08-09 09:48:40 +00:00
|
|
|
c.SetVariant("second"_cnc, secondVariant);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|