Switch to doctest over Catch for unit tests.
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:
@@ -1,5 +1,5 @@
|
||||
#ifdef TESTS_BUILD
|
||||
#include "../../extern/catch.hpp"
|
||||
#include "../../extern/doctest.hpp"
|
||||
#include "../../src/Battling/Pokemon/CreatePokemon.hpp"
|
||||
#include "../TestLibrary/TestLibrary.hpp"
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#ifdef TESTS_BUILD
|
||||
#include "../../extern/catch.hpp"
|
||||
#include "../../extern/doctest.hpp"
|
||||
#include "../../src/Battling/Library/ExperienceLibrary.hpp"
|
||||
#include "../../src/Battling/Pokemon/CreatePokemon.hpp"
|
||||
#include "../TestLibrary/TestLibrary.hpp"
|
||||
using namespace PkmnLib::Battling;
|
||||
|
||||
TEST_CASE("Basic Experience gain test", "battling") {
|
||||
TEST_CASE("Basic Experience gain test") {
|
||||
auto lib = TestLibrary::GetLibrary();
|
||||
auto mon1 = CreatePokemon(lib, "testSpecies"_cnc, 55).Build();
|
||||
auto initialExp = mon1->GetExperience();
|
||||
|
||||
Reference in New Issue
Block a user