2019-10-06 11:50:52 +00:00
|
|
|
#ifdef TESTS_BUILD
|
|
|
|
#define CATCH_CONFIG_MAIN
|
|
|
|
|
|
|
|
#include "../../extern/catch.hpp"
|
2019-10-10 13:08:34 +00:00
|
|
|
#include "../TestLibrary/TestLibrary.cpp"
|
2019-10-06 11:50:52 +00:00
|
|
|
|
|
|
|
TEST_CASE( "Can Create Species Library", "[Library]" ) {
|
|
|
|
auto l = BuildSpeciesLibrary();
|
|
|
|
REQUIRE(l != nullptr);
|
|
|
|
delete l;
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST_CASE( "Can Create Attack Library", "[Library]" ) {
|
|
|
|
auto l = BuildAttackLibrary();
|
|
|
|
REQUIRE(l != nullptr);
|
|
|
|
delete l;
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST_CASE( "Can Create Item Library", "[Library]" ) {
|
|
|
|
auto l = BuildItemLibrary();
|
|
|
|
REQUIRE(l != nullptr);
|
|
|
|
delete l;
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST_CASE( "Can Create Growthrate Library", "[Library]" ) {
|
|
|
|
auto l = BuildGrowthRateLibrary();
|
|
|
|
REQUIRE(l != nullptr);
|
|
|
|
delete l;
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST_CASE( "Can Create Data Library", "[Library]" ) {
|
|
|
|
auto l = BuildLibrary();
|
|
|
|
REQUIRE(l != nullptr);
|
|
|
|
delete l;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|