Update to new CreatureLib version, updated libraries in accordance.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -10,7 +10,7 @@ TEST_CASE("Able to build and destroy empty library", "library") {
|
||||
|
||||
TEST_CASE("Able to build, destroy and insert library", "library") {
|
||||
auto lib = new PkmnLib::Library::SpeciesLibrary();
|
||||
lib->LoadSpecies("foo",
|
||||
lib->Insert("foo",
|
||||
new PkmnLib::Library::PokemonSpecies(
|
||||
1, "foo",
|
||||
new PkmnLib::Library::PokemonForme(
|
||||
@@ -23,7 +23,7 @@ TEST_CASE("Able to build, destroy and insert library", "library") {
|
||||
|
||||
TEST_CASE("Able to insert and retrieve from library", "library") {
|
||||
auto lib = new PkmnLib::Library::SpeciesLibrary();
|
||||
lib->LoadSpecies("foo",
|
||||
lib->Insert("foo",
|
||||
new PkmnLib::Library::PokemonSpecies(
|
||||
1, "foo",
|
||||
new PkmnLib::Library::PokemonForme(
|
||||
@@ -31,7 +31,7 @@ TEST_CASE("Able to insert and retrieve from library", "library") {
|
||||
CreatureLib::Core::StatisticSet<uint16_t>(100, 100, 100, 100, 100, 100), {"testAbility"},
|
||||
{"testHiddenAbility"}, new CreatureLib::Library::LearnableAttacks(100)),
|
||||
0.5f, "testGrowthRate", 100, 100));
|
||||
auto val = lib->GetPkmnSpecies("foo");
|
||||
auto val = lib->Get("foo");
|
||||
REQUIRE(val->GetName() == "foo");
|
||||
delete lib;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user