Started working on getting Battling side done.
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:
12
tests/PokemonTests/BasicPokemonTests.cpp
Normal file
12
tests/PokemonTests/BasicPokemonTests.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifdef TESTS_BUILD
|
||||
#include "../../extern/catch.hpp"
|
||||
#include "../../src/Battling/Pokemon/CreatePokemon.hpp"
|
||||
#include "../TestLibrary/TestLibrary.hpp"
|
||||
|
||||
TEST_CASE("Create and delete Pokemon"){
|
||||
auto lib = TestLibrary::GetLibrary();
|
||||
auto mon = PkmnLib::Battling::CreatePokemon(lib, "testSpecies", 1).Build();
|
||||
delete mon;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user