PkmnLib/tests/LibraryTests/SpeciesLibraryTests.cpp

15 lines
407 B
C++
Raw Normal View History

2019-12-29 14:29:52 +00:00
#ifdef TESTS_BUILD
#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"
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;
}
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