16 lines
408 B
C++
16 lines
408 B
C++
#ifdef TESTS_BUILD
|
|
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
|
#include <doctest.h>
|
|
#include "../../src/Library/Species/SpeciesLibrary.hpp"
|
|
|
|
TEST_CASE("Able to build and destroy empty library") {
|
|
auto lib = new PkmnLib::Library::SpeciesLibrary();
|
|
delete lib;
|
|
}
|
|
|
|
|
|
REGISTER_EXCEPTION_TRANSLATOR(ArbUt::Exception& ex) {
|
|
return {(std::string(ex.what()) + "\n" + ex.GetStacktrace()).c_str()};
|
|
}
|
|
|
|
#endif |