2019-12-29 14:29:52 +00:00
|
|
|
#ifdef TESTS_BUILD
|
2020-09-29 16:04:06 +00:00
|
|
|
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
2022-02-11 11:17:27 +00:00
|
|
|
#include <doctest.h>
|
2019-12-29 14:29:52 +00:00
|
|
|
#include "../../src/Library/Species/SpeciesLibrary.hpp"
|
|
|
|
|
2020-09-29 16:04:06 +00:00
|
|
|
TEST_CASE("Able to build and destroy empty library") {
|
2019-12-29 14:29:52 +00:00
|
|
|
auto lib = new PkmnLib::Library::SpeciesLibrary();
|
|
|
|
delete lib;
|
|
|
|
}
|
|
|
|
|
2022-05-14 09:48:27 +00:00
|
|
|
|
|
|
|
REGISTER_EXCEPTION_TRANSLATOR(ArbUt::Exception& ex) {
|
|
|
|
return {(std::string(ex.what()) + "\n" + ex.GetStacktrace()).c_str()};
|
|
|
|
}
|
|
|
|
|
2019-12-29 14:29:52 +00:00
|
|
|
#endif
|